home *** CD-ROM | disk | FTP | other *** search
/ Inside Macintosh / Inside Macintosh CD-ROM_1995 (CD).toast / Books / Memory < prev    next >
MacBinary  |  1994-08-11  |  2.9 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Memory

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
100% file MacBinary II, inited, Tue May 31 06:33:09 1994, modified Thu Aug 11 03:16:22 1994, creator 'HLX2', type 'ONLN', 2960752 bytes "Memory" , at 0x2d2df0 69414 bytes resource default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-4K) default (weak)
33% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 4d 65 6d 6f 72 79 | 00 00 00 00 00 00 00 00 |..Memory|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 2d 2d 70 00 | 01 0f 26 aa 10 c2 e5 aa |....--p.|..&.....|
|00000060| 6f 80 c6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |o.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 13 00 00 00 |........|........|
|00000080| 49 4e 53 49 44 45 20 4d | 41 43 49 4e 54 4f 53 48 |INSIDE M|ACINTOSH|
|00000090| 0d 0d 4d 65 6d 6f 72 79 | 0d f0 20 41 70 70 6c 65 |..Memory|.. Apple|
|000000a0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|000000b0| a9 20 3c 24 79 65 61 72 | 3e 2c 20 41 70 70 6c 65 |. <$year|>, Apple|
|000000c0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|000000d0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000000e0| 76 65 64 2e 20 0d 4e 6f | 20 70 61 72 74 20 6f 66 |ved. .No| part of|
|000000f0| 20 74 68 69 73 20 70 75 | 62 6c 69 63 61 74 69 6f | this pu|blicatio|
|00000100| 6e 20 6d 61 79 20 62 65 | 20 72 65 70 72 6f 64 75 |n may be| reprodu|
|00000110| 63 65 64 2c 20 73 74 6f | 72 65 64 20 69 6e 20 61 |ced, sto|red in a|
|00000120| 20 72 65 74 72 69 65 76 | 61 6c 20 73 79 73 74 65 | retriev|al syste|
|00000130| 6d 2c 20 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 65 |m, or tr|ansmitte|
|00000140| 64 2c 20 69 6e 20 61 6e | 79 20 66 6f 72 6d 20 6f |d, in an|y form o|
|00000150| 72 20 62 79 20 61 6e 79 | 20 6d 65 61 6e 73 2c 20 |r by any| means, |
|00000160| 6d 65 63 68 61 6e 69 63 | 61 6c 2c 20 65 6c 65 63 |mechanic|al, elec|
|00000170| 74 72 6f 6e 69 63 2c 20 | 70 68 6f 74 6f 63 6f 70 |tronic, |photocop|
|00000180| 79 69 6e 67 2c 20 72 65 | 63 6f 72 64 69 6e 67 2c |ying, re|cording,|
|00000190| 20 6f 72 20 6f 74 68 65 | 72 77 69 73 65 2c 20 77 | or othe|rwise, w|
|000001a0| 69 74 68 6f 75 74 20 70 | 72 69 6f 72 20 77 72 69 |ithout p|rior wri|
|000001b0| 74 74 65 6e 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |tten per|mission |
|000001c0| 6f 66 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |of Apple| Compute|
|000001d0| 72 2c 20 49 6e 63 2e 20 | 50 72 69 6e 74 65 64 20 |r, Inc. |Printed |
|000001e0| 69 6e 20 74 68 65 20 55 | 6e 69 74 65 64 20 53 74 |in the U|nited St|
|000001f0| 61 74 65 73 20 6f 66 20 | 41 6d 65 72 69 63 61 2e |ates of |America.|
|00000200| 0d 4e 6f 20 6c 69 63 65 | 6e 73 65 73 2c 20 65 78 |.No lice|nses, ex|
|00000210| 70 72 65 73 73 20 6f 72 | 20 69 6d 70 6c 69 65 64 |press or| implied|
|00000220| 2c 20 61 72 65 20 67 72 | 61 6e 74 65 64 20 77 69 |, are gr|anted wi|
|00000230| 74 68 20 72 65 73 70 65 | 63 74 20 74 6f 20 61 6e |th respe|ct to an|
|00000240| 79 20 6f 66 20 74 68 65 | 20 74 65 63 68 6e 6f 6c |y of the| technol|
|00000250| 6f 67 79 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |ogy desc|ribed in|
|00000260| 20 74 68 69 73 20 62 6f | 6f 6b 2e 20 41 70 70 6c | this bo|ok. Appl|
|00000270| 65 20 72 65 74 61 69 6e | 73 20 61 6c 6c 20 69 6e |e retain|s all in|
|00000280| 74 65 6c 6c 65 63 74 75 | 61 6c 20 70 72 6f 70 65 |tellectu|al prope|
|00000290| 72 74 79 20 72 69 67 68 | 74 73 20 61 73 73 6f 63 |rty righ|ts assoc|
|000002a0| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 74 |iated wi|th the t|
|000002b0| 65 63 68 6e 6f 6c 6f 67 | 79 20 64 65 73 63 72 69 |echnolog|y descri|
|000002c0| 62 65 64 20 69 6e 20 74 | 68 69 73 20 62 6f 6f 6b |bed in t|his book|
|000002d0| 2e 20 54 68 69 73 20 62 | 6f 6f 6b 20 69 73 20 69 |. This b|ook is i|
|000002e0| 6e 74 65 6e 64 65 64 20 | 74 6f 20 61 73 73 69 73 |ntended |to assis|
|000002f0| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 64 65 |t applic|ation de|
|00000300| 76 65 6c 6f 70 65 72 73 | 20 74 6f 20 64 65 76 65 |velopers| to deve|
|00000310| 6c 6f 70 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |lop appl|ications|
|00000320| 20 6f 6e 6c 79 20 66 6f | 72 20 41 70 70 6c 65 20 | only fo|r Apple |
|00000330| 4d 61 63 69 6e 74 6f 73 | 68 20 63 6f 6d 70 75 74 |Macintos|h comput|
|00000340| 65 72 73 2e 0d 41 70 70 | 6c 65 20 43 6f 6d 70 75 |ers..App|le Compu|
|00000350| 74 65 72 2c 20 49 6e 63 | 2e 0d 32 30 35 32 35 20 |ter, Inc|..20525 |
|00000360| 4d 61 72 69 61 6e 69 20 | 41 76 65 6e 75 65 0d 43 |Mariani |Avenue.C|
|00000370| 75 70 65 72 74 69 6e 6f | 2c 20 43 41 20 39 35 30 |upertino|, CA 950|
|00000380| 31 34 2d 36 32 39 39 0d | 34 30 38 2d 39 39 36 2d |14-6299.|408-996-|
|00000390| 31 30 31 30 0d 41 70 70 | 6c 65 2c 20 74 68 65 20 |1010.App|le, the |
|000003a0| 41 70 70 6c 65 20 6c 6f | 67 6f 2c 20 41 50 44 41 |Apple lo|go, APDA|
|000003b0| 2c 20 41 70 70 6c 65 53 | 68 61 72 65 2c 20 41 2f |, AppleS|hare, A/|
|000003c0| 55 58 2c 20 4c 61 73 65 | 72 57 72 69 74 65 72 2c |UX, Lase|rWriter,|
|000003d0| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 4d 50 57 2c | Macinto|sh, MPW,|
|000003e0| 20 61 6e 64 20 4d 75 6c | 74 69 46 69 6e 64 65 72 | and Mul|tiFinder|
|000003f0| 20 61 72 65 20 74 72 61 | 64 65 6d 61 72 6b 73 20 | are tra|demarks |
|00000400| 6f 66 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |of Apple| Compute|
|00000410| 72 2c 20 49 6e 63 2e 2c | 20 72 65 67 69 73 74 65 |r, Inc.,| registe|
|00000420| 72 65 64 20 69 6e 20 74 | 68 65 20 55 6e 69 74 65 |red in t|he Unite|
|00000430| 64 20 53 74 61 74 65 73 | 20 61 6e 64 20 6f 74 68 |d States| and oth|
|00000440| 65 72 20 63 6f 75 6e 74 | 72 69 65 73 2e 0d 46 69 |er count|ries..Fi|
|00000450| 6e 64 65 72 2c 20 50 6f | 77 65 72 42 6f 6f 6b 2c |nder, Po|werBook,|
|00000460| 20 61 6e 64 20 51 75 69 | 63 6b 44 72 61 77 20 61 | and Qui|ckDraw a|
|00000470| 72 65 20 74 72 61 64 65 | 6d 61 72 6b 73 20 6f 66 |re trade|marks of|
|00000480| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00000490| 20 49 6e 63 2e 0d 41 64 | 6f 62 65 20 49 6c 6c 75 | Inc..Ad|obe Illu|
|000004a0| 73 74 72 61 74 6f 72 20 | 61 6e 64 20 50 6f 73 74 |strator |and Post|
|000004b0| 53 63 72 69 70 74 20 61 | 72 65 20 74 72 61 64 65 |Script a|re trade|
|000004c0| 6d 61 72 6b 73 20 6f 66 | 20 41 64 6f 62 65 20 53 |marks of| Adobe S|
|000004d0| 79 73 74 65 6d 73 20 49 | 6e 63 6f 72 70 6f 72 61 |ystems I|ncorpora|
|000004e0| 74 65 64 2c 20 77 68 69 | 63 68 20 6d 61 79 20 62 |ted, whi|ch may b|
|000004f0| 65 20 72 65 67 69 73 74 | 65 72 65 64 20 69 6e 20 |e regist|ered in |
|00000500| 63 65 72 74 61 69 6e 20 | 6a 75 72 69 73 64 69 63 |certain |jurisdic|
|00000510| 74 69 6f 6e 73 2e 0d 41 | 47 46 41 20 69 73 20 61 |tions..A|GFA is a|
|00000520| 20 74 72 61 64 65 6d 61 | 72 6b 20 6f 66 20 41 67 | tradema|rk of Ag|
|00000530| 66 61 2d 47 65 76 61 65 | 72 74 2e 0d 46 72 61 6d |fa-Gevae|rt..Fram|
|00000540| 65 4d 61 6b 65 72 20 69 | 73 20 61 20 72 65 67 69 |eMaker i|s a regi|
|00000550| 73 74 65 72 65 64 20 74 | 72 61 64 65 6d 61 72 6b |stered t|rademark|
|00000560| 20 6f 66 20 46 72 61 6d | 65 20 54 65 63 68 6e 6f | of Fram|e Techno|
|00000570| 6c 6f 67 79 20 43 6f 72 | 70 6f 72 61 74 69 6f 6e |logy Cor|poration|
|00000580| 2e 0d 48 65 6c 76 65 74 | 69 63 61 20 61 6e 64 20 |..Helvet|ica and |
|00000590| 50 61 6c 61 74 69 6e 6f | 20 61 72 65 20 72 65 67 |Palatino| are reg|
|000005a0| 69 73 74 65 72 65 64 20 | 74 72 61 64 65 6d 61 72 |istered |trademar|
|000005b0| 6b 73 20 6f 66 20 4c 69 | 6e 6f 74 79 70 65 20 43 |ks of Li|notype C|
|000005c0| 6f 6d 70 61 6e 79 2e 0d | 49 54 43 20 5a 61 70 66 |ompany..|ITC Zapf|
|000005d0| 20 44 69 6e 67 62 61 74 | 73 20 69 73 20 61 20 72 | Dingbat|s is a r|
|000005e0| 65 67 69 73 74 65 72 65 | 64 20 74 72 61 64 65 6d |egistere|d tradem|
|000005f0| 61 72 6b 20 6f 66 20 49 | 6e 74 65 72 6e 61 74 69 |ark of I|nternati|
|00000600| 6f 6e 61 6c 20 54 79 70 | 65 66 61 63 65 20 43 6f |onal Typ|eface Co|
|00000610| 72 70 6f 72 61 74 69 6f | 6e 2e 0d 4e 75 42 75 73 |rporatio|n..NuBus|
|00000620| 20 69 73 20 61 20 74 72 | 61 64 65 6d 61 72 6b 20 | is a tr|ademark |
|00000630| 6f 66 20 54 65 78 61 73 | 20 49 6e 73 74 72 75 6d |of Texas| Instrum|
|00000640| 65 6e 74 73 2e 0d 53 69 | 6d 75 6c 74 61 6e 65 6f |ents..Si|multaneo|
|00000650| 75 73 6c 79 20 70 75 62 | 6c 69 73 68 65 64 20 69 |usly pub|lished i|
|00000660| 6e 20 74 68 65 20 55 6e | 69 74 65 64 20 53 74 61 |n the Un|ited Sta|
|00000670| 74 65 73 20 61 6e 64 20 | 43 61 6e 61 64 61 2e 0d |tes and |Canada..|
|00000680| 4c 49 4d 49 54 45 44 20 | 57 41 52 52 41 4e 54 59 |LIMITED |WARRANTY|
|00000690| 20 4f 4e 20 4d 45 44 49 | 41 20 41 4e 44 20 52 45 | ON MEDI|A AND RE|
|000006a0| 50 4c 41 43 45 4d 45 4e | 54 0d 41 4c 4c 20 49 4d |PLACEMEN|T.ALL IM|
|000006b0| 50 4c 49 45 44 20 57 41 | 52 52 41 4e 54 49 45 53 |PLIED WA|RRANTIES|
|000006c0| 20 4f 4e 20 54 48 49 53 | 20 4d 41 4e 55 41 4c 2c | ON THIS| MANUAL,|
|000006d0| 20 49 4e 43 4c 55 44 49 | 4e 47 20 49 4d 50 4c 49 | INCLUDI|NG IMPLI|
|000006e0| 45 44 20 57 41 52 52 41 | 4e 54 49 45 53 20 4f 46 |ED WARRA|NTIES OF|
|000006f0| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|00000700| 20 41 4e 44 20 46 49 54 | 4e 45 53 53 20 46 4f 52 | AND FIT|NESS FOR|
|00000710| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|00000720| 52 50 4f 53 45 2c 20 41 | 52 45 20 4c 49 4d 49 54 |RPOSE, A|RE LIMIT|
|00000730| 45 44 20 49 4e 20 44 55 | 52 41 54 49 4f 4e 20 54 |ED IN DU|RATION T|
|00000740| 4f 20 4e 49 4e 45 54 59 | 20 28 39 30 29 20 44 41 |O NINETY| (90) DA|
|00000750| 59 53 20 46 52 4f 4d 20 | 54 48 45 20 44 41 54 45 |YS FROM |THE DATE|
|00000760| 20 4f 46 20 54 48 45 20 | 4f 52 49 47 49 4e 41 4c | OF THE |ORIGINAL|
|00000770| 20 52 45 54 41 49 4c 20 | 50 55 52 43 48 41 53 45 | RETAIL |PURCHASE|
|00000780| 20 4f 46 20 54 48 49 53 | 20 50 52 4f 44 55 43 54 | OF THIS| PRODUCT|
|00000790| 2e 0d 45 76 65 6e 20 74 | 68 6f 75 67 68 20 41 70 |..Even t|hough Ap|
|000007a0| 70 6c 65 20 68 61 73 20 | 72 65 76 69 65 77 65 64 |ple has |reviewed|
|000007b0| 20 74 68 69 73 20 6d 61 | 6e 75 61 6c 2c 20 41 50 | this ma|nual, AP|
|000007c0| 50 4c 45 20 4d 41 4b 45 | 53 20 4e 4f 20 57 41 52 |PLE MAKE|S NO WAR|
|000007d0| 52 41 4e 54 59 20 4f 52 | 20 52 45 50 52 45 53 45 |RANTY OR| REPRESE|
|000007e0| 4e 54 41 54 49 4f 4e 2c | 20 45 49 54 48 45 52 20 |NTATION,| EITHER |
|000007f0| 45 58 50 52 45 53 53 20 | 4f 52 20 49 4d 50 4c 49 |EXPRESS |OR IMPLI|
|00000800| 45 44 2c 20 57 49 54 48 | 20 52 45 53 50 45 43 54 |ED, WITH| RESPECT|
|00000810| 20 54 4f 20 54 48 49 53 | 20 4d 41 4e 55 41 4c 2c | TO THIS| MANUAL,|
|00000820| 20 49 54 53 20 51 55 41 | 4c 49 54 59 2c 20 41 43 | ITS QUA|LITY, AC|
|00000830| 43 55 52 41 43 59 2c 20 | 4d 45 52 43 48 41 4e 54 |CURACY, |MERCHANT|
|00000840| 41 42 49 4c 49 54 59 2c | 20 4f 52 20 46 49 54 4e |ABILITY,| OR FITN|
|00000850| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|00000860| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2e 20 41 53 |ULAR PUR|POSE. AS|
|00000870| 20 41 20 52 45 53 55 4c | 54 2c 20 54 48 49 53 20 | A RESUL|T, THIS |
|00000880| 4d 41 4e 55 41 4c 20 49 | 53 20 53 4f 4c 44 20 d2 |MANUAL I|S SOLD .|
|00000890| 41 53 20 49 53 2c d3 20 | 41 4e 44 20 59 4f 55 2c |AS IS,. |AND YOU,|
|000008a0| 20 54 48 45 20 50 55 52 | 43 48 41 53 45 52 2c 20 | THE PUR|CHASER, |
|000008b0| 41 52 45 20 41 53 53 55 | 4d 49 4e 47 20 54 48 45 |ARE ASSU|MING THE|
|000008c0| 20 45 4e 54 49 52 45 20 | 52 49 53 4b 20 41 53 20 | ENTIRE |RISK AS |
|000008d0| 54 4f 20 49 54 53 20 51 | 55 41 4c 49 54 59 20 41 |TO ITS Q|UALITY A|
|000008e0| 4e 44 20 41 43 43 55 52 | 41 43 59 2e 0d 49 4e 20 |ND ACCUR|ACY..IN |
|000008f0| 4e 4f 20 45 56 45 4e 54 | 20 57 49 4c 4c 20 41 50 |NO EVENT| WILL AP|
|00000900| 50 4c 45 20 42 45 20 4c | 49 41 42 4c 45 20 46 4f |PLE BE L|IABLE FO|
|00000910| 52 20 44 49 52 45 43 54 | 2c 20 49 4e 44 49 52 45 |R DIRECT|, INDIRE|
|00000920| 43 54 2c 20 53 50 45 43 | 49 41 4c 2c 20 49 4e 43 |CT, SPEC|IAL, INC|
|00000930| 49 44 45 4e 54 41 4c 2c | 20 4f 52 20 43 4f 4e 53 |IDENTAL,| OR CONS|
|00000940| 45 51 55 45 4e 54 49 41 | 4c 20 44 41 4d 41 47 45 |EQUENTIA|L DAMAGE|
|00000950| 53 20 52 45 53 55 4c 54 | 49 4e 47 20 46 52 4f 4d |S RESULT|ING FROM|
|00000960| 20 41 4e 59 20 44 45 46 | 45 43 54 20 4f 52 20 49 | ANY DEF|ECT OR I|
|00000970| 4e 41 43 43 55 52 41 43 | 59 20 49 4e 20 54 48 49 |NACCURAC|Y IN THI|
|00000980| 53 20 4d 41 4e 55 41 4c | 2c 20 65 76 65 6e 20 69 |S MANUAL|, even i|
|00000990| 66 20 61 64 76 69 73 65 | 64 20 6f 66 20 74 68 65 |f advise|d of the|
|000009a0| 20 70 6f 73 73 69 62 69 | 6c 69 74 79 20 6f 66 20 | possibi|lity of |
|000009b0| 73 75 63 68 20 64 61 6d | 61 67 65 73 2e 0d 54 48 |such dam|ages..TH|
|000009c0| 45 20 57 41 52 52 41 4e | 54 59 20 41 4e 44 20 52 |E WARRAN|TY AND R|
|000009d0| 45 4d 45 44 49 45 53 20 | 53 45 54 20 46 4f 52 54 |EMEDIES |SET FORT|
|000009e0| 48 20 41 42 4f 56 45 20 | 41 52 45 20 45 58 43 4c |H ABOVE |ARE EXCL|
|000009f0| 55 53 49 56 45 20 41 4e | 44 20 49 4e 20 4c 49 45 |USIVE AN|D IN LIE|
|00000a00| 55 20 4f 46 20 41 4c 4c | 20 4f 54 48 45 52 53 2c |U OF ALL| OTHERS,|
|00000a10| 20 4f 52 41 4c 20 4f 52 | 20 57 52 49 54 54 45 4e | ORAL OR| WRITTEN|
|00000a20| 2c 20 45 58 50 52 45 53 | 53 20 4f 52 20 49 4d 50 |, EXPRES|S OR IMP|
|00000a30| 4c 49 45 44 2e 20 4e 6f | 20 41 70 70 6c 65 20 64 |LIED. No| Apple d|
|00000a40| 65 61 6c 65 72 2c 20 61 | 67 65 6e 74 2c 20 6f 72 |ealer, a|gent, or|
|00000a50| 20 65 6d 70 6c 6f 79 65 | 65 20 69 73 20 61 75 74 | employe|e is aut|
|00000a60| 68 6f 72 69 7a 65 64 20 | 74 6f 20 6d 61 6b 65 20 |horized |to make |
|00000a70| 61 6e 79 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |any modi|fication|
|00000a80| 2c 20 65 78 74 65 6e 73 | 69 6f 6e 2c 20 6f 72 20 |, extens|ion, or |
|00000a90| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 74 68 69 73 |addition| to this|
|00000aa0| 20 77 61 72 72 61 6e 74 | 79 2e 0d 53 6f 6d 65 20 | warrant|y..Some |
|00000ab0| 73 74 61 74 65 73 20 64 | 6f 20 6e 6f 74 20 61 6c |states d|o not al|
|00000ac0| 6c 6f 77 20 74 68 65 20 | 65 78 63 6c 75 73 69 6f |low the |exclusio|
|00000ad0| 6e 20 6f 72 20 6c 69 6d | 69 74 61 74 69 6f 6e 20 |n or lim|itation |
|00000ae0| 6f 66 20 69 6d 70 6c 69 | 65 64 20 77 61 72 72 61 |of impli|ed warra|
|00000af0| 6e 74 69 65 73 20 6f 72 | 20 6c 69 61 62 69 6c 69 |nties or| liabili|
|00000b00| 74 79 20 66 6f 72 20 69 | 6e 63 69 64 65 6e 74 61 |ty for i|ncidenta|
|00000b10| 6c 20 6f 72 20 63 6f 6e | 73 65 71 75 65 6e 74 69 |l or con|sequenti|
|00000b20| 61 6c 20 64 61 6d 61 67 | 65 73 2c 20 73 6f 20 74 |al damag|es, so t|
|00000b30| 68 65 20 61 62 6f 76 65 | 20 6c 69 6d 69 74 61 74 |he above| limitat|
|00000b40| 69 6f 6e 20 6f 72 20 65 | 78 63 6c 75 73 69 6f 6e |ion or e|xclusion|
|00000b50| 20 6d 61 79 20 6e 6f 74 | 20 61 70 70 6c 79 20 74 | may not| apply t|
|00000b60| 6f 20 79 6f 75 2e 20 54 | 68 69 73 20 77 61 72 72 |o you. T|his warr|
|00000b70| 61 6e 74 79 20 67 69 76 | 65 73 20 79 6f 75 20 73 |anty giv|es you s|
|00000b80| 70 65 63 69 66 69 63 20 | 6c 65 67 61 6c 20 72 69 |pecific |legal ri|
|00000b90| 67 68 74 73 2c 20 61 6e | 64 20 79 6f 75 20 6d 61 |ghts, an|d you ma|
|00000ba0| 79 20 61 6c 73 6f 20 68 | 61 76 65 20 6f 74 68 65 |y also h|ave othe|
|00000bb0| 72 20 72 69 67 68 74 73 | 20 77 68 69 63 68 20 76 |r rights| which v|
|00000bc0| 61 72 79 20 66 72 6f 6d | 20 73 74 61 74 65 20 74 |ary from| state t|
|00000bd0| 6f 20 73 74 61 74 65 2e | 0d 0d 49 53 42 4e 20 30 |o state.|..ISBN 0|
|00000be0| 2d 32 30 31 2d 36 33 32 | 34 30 2d 33 0d 31 20 32 |-201-632|40-3.1 2|
|00000bf0| 20 33 20 34 20 35 20 36 | 20 37 20 38 20 39 2d 4d | 3 4 5 6| 7 8 9-M|
|00000c00| 55 2d 39 36 39 35 39 34 | 39 33 39 32 0d 46 69 72 |U-969594|9392.Fir|
|00000c10| 73 74 20 50 72 69 6e 74 | 69 6e 67 2c 20 41 75 67 |st Print|ing, Aug|
|00000c20| 75 73 74 20 31 39 39 32 | 0d 43 6f 6e 74 65 6e 74 |ust 1992|.Content|
|00000c30| 73 0d 0d 46 69 67 75 72 | 65 73 2c 20 54 61 62 6c |s..Figur|es, Tabl|
|00000c40| 65 73 2c 20 61 6e 64 20 | 4c 69 73 74 69 6e 67 73 |es, and |Listings|
|00000c50| 14 14 69 78 0d 50 72 65 | 66 61 63 65 09 41 62 6f |..ix.Pre|face.Abo|
|00000c60| 75 74 20 54 68 69 73 20 | 42 6f 6f 6b 14 14 78 69 |ut This |Book..xi|
|00000c70| 0d 0d 46 6f 72 6d 61 74 | 20 6f 66 20 61 20 54 79 |..Format| of a Ty|
|00000c80| 70 69 63 61 6c 20 43 68 | 61 70 74 65 72 14 14 78 |pical Ch|apter..x|
|00000c90| 69 69 0d 43 6f 6e 76 65 | 6e 74 69 6f 6e 73 20 55 |ii.Conve|ntions U|
|00000ca0| 73 65 64 20 69 6e 20 54 | 68 69 73 20 42 6f 6f 6b |sed in T|his Book|
|00000cb0| 14 14 78 69 69 0d 53 70 | 65 63 69 61 6c 20 46 6f |..xii.Sp|ecial Fo|
|00000cc0| 6e 74 73 14 14 78 69 69 | 0d 54 79 70 65 73 20 6f |nts..xii|.Types o|
|00000cd0| 66 20 4e 6f 74 65 73 14 | 14 78 69 69 69 0d 41 73 |f Notes.|.xiii.As|
|00000ce0| 73 65 6d 62 6c 79 2d 4c | 61 6e 67 75 61 67 65 20 |sembly-L|anguage |
|00000cf0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 14 14 78 69 69 |Informat|ion..xii|
|00000d00| 69 0d 44 65 76 65 6c 6f | 70 6d 65 6e 74 20 45 6e |i.Develo|pment En|
|00000d10| 76 69 72 6f 6e 6d 65 6e | 74 14 14 78 69 76 0d 43 |vironmen|t..xiv.C|
|00000d20| 68 61 70 74 65 72 20 31 | 09 49 6e 74 72 6f 64 75 |hapter 1|.Introdu|
|00000d30| 63 74 69 6f 6e 20 74 6f | 20 4d 65 6d 6f 72 79 20 |ction to| Memory |
|00000d40| 4d 61 6e 61 67 65 6d 65 | 6e 74 14 14 31 2d 31 0d |Manageme|nt..1-1.|
|00000d50| 0d 41 62 6f 75 74 20 4d | 65 6d 6f 72 79 14 14 31 |.About M|emory..1|
|00000d60| 2d 34 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 20 |-4.Organ|ization |
|00000d70| 6f 66 20 4d 65 6d 6f 72 | 79 20 62 79 20 74 68 65 |of Memor|y by the|
|00000d80| 20 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 | Operati|ng Syste|
|00000d90| 6d 14 14 31 2d 34 0d 54 | 68 65 20 53 79 73 74 65 |m..1-4.T|he Syste|
|00000da0| 6d 20 48 65 61 70 14 14 | 31 2d 36 0d 54 68 65 20 |m Heap..|1-6.The |
|00000db0| 53 79 73 74 65 6d 20 47 | 6c 6f 62 61 6c 20 56 61 |System G|lobal Va|
|00000dc0| 72 69 61 62 6c 65 73 14 | 14 31 2d 36 0d 4f 72 67 |riables.|.1-6.Org|
|00000dd0| 61 6e 69 7a 61 74 69 6f | 6e 20 6f 66 20 4d 65 6d |anizatio|n of Mem|
|00000de0| 6f 72 79 20 69 6e 20 61 | 6e 20 41 70 70 6c 69 63 |ory in a|n Applic|
|00000df0| 61 74 69 6f 6e 20 50 61 | 72 74 69 74 69 6f 6e 14 |ation Pa|rtition.|
|00000e00| 14 31 2d 37 0d 54 68 65 | 20 41 70 70 6c 69 63 61 |.1-7.The| Applica|
|00000e10| 74 69 6f 6e 20 53 74 61 | 63 6b 14 14 31 2d 38 0d |tion Sta|ck..1-8.|
|00000e20| 54 68 65 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |The Appl|ication |
|00000e30| 48 65 61 70 14 14 31 2d | 39 0d 54 68 65 20 41 70 |Heap..1-|9.The Ap|
|00000e40| 70 6c 69 63 61 74 69 6f | 6e 20 47 6c 6f 62 61 6c |plicatio|n Global|
|00000e50| 20 56 61 72 69 61 62 6c | 65 73 20 61 6e 64 20 41 | Variabl|es and A|
|00000e60| 35 20 57 6f 72 6c 64 14 | 14 31 2d 31 32 0d 54 65 |5 World.|.1-12.Te|
|00000e70| 6d 70 6f 72 61 72 79 20 | 4d 65 6d 6f 72 79 14 14 |mporary |Memory..|
|00000e80| 31 2d 31 33 0d 56 69 72 | 74 75 61 6c 20 4d 65 6d |1-13.Vir|tual Mem|
|00000e90| 6f 72 79 14 14 31 2d 31 | 35 0d 41 64 64 72 65 73 |ory..1-1|5.Addres|
|00000ea0| 73 69 6e 67 20 4d 6f 64 | 65 73 14 14 31 2d 31 35 |sing Mod|es..1-15|
|00000eb0| 0d 48 65 61 70 20 4d 61 | 6e 61 67 65 6d 65 6e 74 |.Heap Ma|nagement|
|00000ec0| 14 14 31 2d 31 36 0d 52 | 65 6c 6f 63 61 74 61 62 |..1-16.R|elocatab|
|00000ed0| 6c 65 20 61 6e 64 20 4e | 6f 6e 72 65 6c 6f 63 61 |le and N|onreloca|
|00000ee0| 74 61 62 6c 65 20 42 6c | 6f 63 6b 73 14 14 31 2d |table Bl|ocks..1-|
|00000ef0| 31 36 0d 50 72 6f 70 65 | 72 74 69 65 73 20 6f 66 |16.Prope|rties of|
|00000f00| 20 52 65 6c 6f 63 61 74 | 61 62 6c 65 20 42 6c 6f | Relocat|able Blo|
|00000f10| 63 6b 73 14 14 31 2d 32 | 30 0d 4c 6f 63 6b 69 6e |cks..1-2|0.Lockin|
|00000f20| 67 20 61 6e 64 20 55 6e | 6c 6f 63 6b 69 6e 67 20 |g and Un|locking |
|00000f30| 52 65 6c 6f 63 61 74 61 | 62 6c 65 20 42 6c 6f 63 |Relocata|ble Bloc|
|00000f40| 6b 73 14 14 31 2d 32 30 | 0d 50 75 72 67 69 6e 67 |ks..1-20|.Purging|
|00000f50| 20 61 6e 64 20 52 65 61 | 6c 6c 6f 63 61 74 69 6e | and Rea|llocatin|
|00000f60| 67 20 52 65 6c 6f 63 61 | 74 61 62 6c 65 20 42 6c |g Reloca|table Bl|
|00000f70| 6f 63 6b 73 14 14 31 2d | 32 31 0d 4d 65 6d 6f 72 |ocks..1-|21.Memor|
|00000f80| 79 20 52 65 73 65 72 76 | 61 74 69 6f 6e 14 14 31 |y Reserv|ation..1|
|00000f90| 2d 32 32 0d 48 65 61 70 | 20 50 75 72 67 69 6e 67 |-22.Heap| Purging|
|00000fa0| 20 61 6e 64 20 43 6f 6d | 70 61 63 74 69 6f 6e 14 | and Com|paction.|
|00000fb0| 14 31 2d 32 33 0d 48 65 | 61 70 20 46 72 61 67 6d |.1-23.He|ap Fragm|
|00000fc0| 65 6e 74 61 74 69 6f 6e | 14 14 31 2d 32 34 0d 44 |entation|..1-24.D|
|00000fd0| 65 61 6c 6c 6f 63 61 74 | 69 6e 67 20 4e 6f 6e 72 |eallocat|ing Nonr|
|00000fe0| 65 6c 6f 63 61 74 61 62 | 6c 65 20 42 6c 6f 63 6b |elocatab|le Block|
|00000ff0| 73 14 14 31 2d 32 35 0d | 52 65 73 65 72 76 69 6e |s..1-25.|Reservin|
|00001000| 67 20 4d 65 6d 6f 72 79 | 14 14 31 2d 32 35 0d 4c |g Memory|..1-25.L|
|00001010| 6f 63 6b 69 6e 67 20 52 | 65 6c 6f 63 61 74 61 62 |ocking R|elocatab|
|00001020| 6c 65 20 42 6c 6f 63 6b | 73 14 14 31 2d 32 36 0d |le Block|s..1-26.|
|00001030| 41 6c 6c 6f 63 61 74 69 | 6e 67 20 4e 6f 6e 72 65 |Allocati|ng Nonre|
|00001040| 6c 6f 63 61 74 61 62 6c | 65 20 42 6c 6f 63 6b 73 |locatabl|e Blocks|
|00001050| 14 14 31 2d 32 37 0d 53 | 75 6d 6d 61 72 79 20 6f |..1-27.S|ummary o|
|00001060| 66 20 50 72 65 76 65 6e | 74 69 6e 67 20 46 72 61 |f Preven|ting Fra|
|00001070| 67 6d 65 6e 74 61 74 69 | 6f 6e 14 14 31 2d 32 38 |gmentati|on..1-28|
|00001080| 0d 44 61 6e 67 6c 69 6e | 67 20 50 6f 69 6e 74 65 |.Danglin|g Pointe|
|00001090| 72 73 14 14 31 2d 32 39 | 0d 43 6f 6d 70 69 6c 65 |rs..1-29|.Compile|
|000010a0| 72 20 44 65 72 65 66 65 | 72 65 6e 63 69 6e 67 14 |r Derefe|rencing.|
|000010b0| 14 31 2d 32 39 0d 4c 6f | 61 64 69 6e 67 20 43 6f |.1-29.Lo|ading Co|
|000010c0| 64 65 20 53 65 67 6d 65 | 6e 74 73 14 14 31 2d 33 |de Segme|nts..1-3|
|000010d0| 31 0d 43 61 6c 6c 62 61 | 63 6b 20 52 6f 75 74 69 |1.Callba|ck Routi|
|000010e0| 6e 65 73 14 14 31 2d 33 | 32 0d 49 6e 76 61 6c 69 |nes..1-3|2.Invali|
|000010f0| 64 20 48 61 6e 64 6c 65 | 73 14 14 31 2d 33 33 0d |d Handle|s..1-33.|
|00001100| 44 69 73 70 6f 73 65 64 | 20 48 61 6e 64 6c 65 73 |Disposed| Handles|
|00001110| 14 14 31 2d 33 33 0d 45 | 6d 70 74 79 20 48 61 6e |..1-33.E|mpty Han|
|00001120| 64 6c 65 73 14 14 31 2d | 33 34 0d 46 61 6b 65 20 |dles..1-|34.Fake |
|00001130| 48 61 6e 64 6c 65 73 14 | 14 31 2d 33 35 0d 4c 6f |Handles.|.1-35.Lo|
|00001140| 77 2d 4d 65 6d 6f 72 79 | 20 43 6f 6e 64 69 74 69 |w-Memory| Conditi|
|00001150| 6f 6e 73 14 14 31 2d 33 | 36 0d 4d 65 6d 6f 72 79 |ons..1-3|6.Memory|
|00001160| 20 43 75 73 68 69 6f 6e | 73 14 14 31 2d 33 36 0d | Cushion|s..1-36.|
|00001170| 4d 65 6d 6f 72 79 20 52 | 65 73 65 72 76 65 73 14 |Memory R|eserves.|
|00001180| 14 31 2d 33 37 0d 47 72 | 6f 77 2d 5a 6f 6e 65 20 |.1-37.Gr|ow-Zone |
|00001190| 46 75 6e 63 74 69 6f 6e | 73 14 14 31 2d 33 38 0d |Function|s..1-38.|
|000011a0| 55 73 69 6e 67 20 4d 65 | 6d 6f 72 79 14 14 31 2d |Using Me|mory..1-|
|000011b0| 33 38 0d 53 65 74 74 69 | 6e 67 20 55 70 20 74 68 |38.Setti|ng Up th|
|000011c0| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 48 65 |e Applic|ation He|
|000011d0| 61 70 14 14 31 2d 33 38 | 0d 43 68 61 6e 67 69 6e |ap..1-38|.Changin|
|000011e0| 67 20 74 68 65 20 53 69 | 7a 65 20 6f 66 20 74 68 |g the Si|ze of th|
|000011f0| 65 20 53 74 61 63 6b 14 | 14 31 2d 33 39 0d 45 78 |e Stack.|.1-39.Ex|
|00001200| 70 61 6e 64 69 6e 67 20 | 74 68 65 20 48 65 61 70 |panding |the Heap|
|00001210| 14 14 31 2d 34 30 0d 41 | 6c 6c 6f 63 61 74 69 6e |..1-40.A|llocatin|
|00001220| 67 20 4d 61 73 74 65 72 | 20 50 6f 69 6e 74 65 72 |g Master| Pointer|
|00001230| 20 42 6c 6f 63 6b 73 14 | 14 31 2d 34 31 0d 44 65 | Blocks.|.1-41.De|
|00001240| 74 65 72 6d 69 6e 69 6e | 67 20 74 68 65 20 41 6d |terminin|g the Am|
|00001250| 6f 75 6e 74 20 6f 66 20 | 46 72 65 65 20 4d 65 6d |ount of |Free Mem|
|00001260| 6f 72 79 14 14 31 2d 34 | 32 0d 41 6c 6c 6f 63 61 |ory..1-4|2.Alloca|
|00001270| 74 69 6e 67 20 42 6c 6f | 63 6b 73 20 6f 66 20 4d |ting Blo|cks of M|
|00001280| 65 6d 6f 72 79 14 14 31 | 2d 34 34 0d 4d 61 69 6e |emory..1|-44.Main|
|00001290| 74 61 69 6e 69 6e 67 20 | 61 20 4d 65 6d 6f 72 79 |taining |a Memory|
|000012a0| 20 52 65 73 65 72 76 65 | 14 14 31 2d 34 36 0d 44 | Reserve|..1-46.D|
|000012b0| 65 66 69 6e 69 6e 67 20 | 61 20 47 72 6f 77 2d 5a |efining |a Grow-Z|
|000012c0| 6f 6e 65 20 46 75 6e 63 | 74 69 6f 6e 14 14 31 2d |one Func|tion..1-|
|000012d0| 34 38 0d 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |48.Memor|y Manage|
|000012e0| 6d 65 6e 74 20 52 65 66 | 65 72 65 6e 63 65 14 14 |ment Ref|erence..|
|000012f0| 31 2d 35 30 0d 4d 65 6d | 6f 72 79 20 4d 61 6e 61 |1-50.Mem|ory Mana|
|00001300| 67 65 6d 65 6e 74 20 52 | 6f 75 74 69 6e 65 73 14 |gement R|outines.|
|00001310| 14 31 2d 35 30 0d 53 65 | 74 74 69 6e 67 20 55 70 |.1-50.Se|tting Up|
|00001320| 20 74 68 65 20 41 70 70 | 6c 69 63 61 74 69 6f 6e | the App|lication|
|00001330| 20 48 65 61 70 14 14 31 | 2d 35 30 0d 41 6c 6c 6f | Heap..1|-50.Allo|
|00001340| 63 61 74 69 6e 67 20 61 | 6e 64 20 52 65 6c 65 61 |cating a|nd Relea|
|00001350| 73 69 6e 67 20 52 65 6c | 6f 63 61 74 61 62 6c 65 |sing Rel|ocatable|
|00001360| 20 42 6c 6f 63 6b 73 20 | 6f 66 20 4d 65 6d 6f 72 | Blocks |of Memor|
|00001370| 79 14 14 31 2d 35 34 0d | 41 6c 6c 6f 63 61 74 69 |y..1-54.|Allocati|
|00001380| 6e 67 20 61 6e 64 20 52 | 65 6c 65 61 73 69 6e 67 |ng and R|eleasing|
|00001390| 20 4e 6f 6e 72 65 6c 6f | 63 61 74 61 62 6c 65 20 | Nonrelo|catable |
|000013a0| 42 6c 6f 63 6b 73 20 6f | 66 20 4d 65 6d 6f 72 79 |Blocks o|f Memory|
|000013b0| 14 14 31 2d 35 38 0d 53 | 65 74 74 69 6e 67 20 74 |..1-58.S|etting t|
|000013c0| 68 65 20 50 72 6f 70 65 | 72 74 69 65 73 20 6f 66 |he Prope|rties of|
|000013d0| 20 52 65 6c 6f 63 61 74 | 61 62 6c 65 20 42 6c 6f | Relocat|able Blo|
|000013e0| 63 6b 73 14 14 31 2d 36 | 30 0d 4d 61 6e 61 67 69 |cks..1-6|0.Managi|
|000013f0| 6e 67 20 52 65 6c 6f 63 | 61 74 61 62 6c 65 20 42 |ng Reloc|atable B|
|00001400| 6c 6f 63 6b 73 14 14 31 | 2d 36 37 0d 4d 61 6e 69 |locks..1|-67.Mani|
|00001410| 70 75 6c 61 74 69 6e 67 | 20 42 6c 6f 63 6b 73 20 |pulating| Blocks |
|00001420| 6f 66 20 4d 65 6d 6f 72 | 79 14 14 31 2d 37 33 0d |of Memor|y..1-73.|
|00001430| 41 73 73 65 73 73 69 6e | 67 20 4d 65 6d 6f 72 79 |Assessin|g Memory|
|00001440| 20 43 6f 6e 64 69 74 69 | 6f 6e 73 14 14 31 2d 37 | Conditi|ons..1-7|
|00001450| 35 0d 47 72 6f 77 2d 5a | 6f 6e 65 20 4f 70 65 72 |5.Grow-Z|one Oper|
|00001460| 61 74 69 6f 6e 73 14 14 | 31 2d 37 37 0d 53 65 74 |ations..|1-77.Set|
|00001470| 74 69 6e 67 20 61 6e 64 | 20 52 65 73 74 6f 72 69 |ting and| Restori|
|00001480| 6e 67 20 74 68 65 20 41 | 35 20 52 65 67 69 73 74 |ng the A|5 Regist|
|00001490| 65 72 14 14 31 2d 37 38 | 0d 41 70 70 6c 69 63 61 |er..1-78|.Applica|
|000014a0| 74 69 6f 6e 2d 44 65 66 | 69 6e 65 64 20 52 6f 75 |tion-Def|ined Rou|
|000014b0| 74 69 6e 65 73 14 14 31 | 2d 38 30 0d 47 72 6f 77 |tines..1|-80.Grow|
|000014c0| 2d 5a 6f 6e 65 20 46 75 | 6e 63 74 69 6f 6e 73 14 |-Zone Fu|nctions.|
|000014d0| 14 31 2d 38 30 0d 53 75 | 6d 6d 61 72 79 20 6f 66 |.1-80.Su|mmary of|
|000014e0| 20 4d 65 6d 6f 72 79 20 | 4d 61 6e 61 67 65 6d 65 | Memory |Manageme|
|000014f0| 6e 74 14 14 31 2d 38 32 | 0d 50 61 73 63 61 6c 20 |nt..1-82|.Pascal |
|00001500| 53 75 6d 6d 61 72 79 14 | 14 31 2d 38 32 0d 44 61 |Summary.|.1-82.Da|
|00001510| 74 61 20 54 79 70 65 73 | 14 14 31 2d 38 32 0d 4d |ta Types|..1-82.M|
|00001520| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 6d 65 6e 74 |emory Ma|nagement|
|00001530| 20 52 6f 75 74 69 6e 65 | 73 14 14 31 2d 38 32 0d | Routine|s..1-82.|
|00001540| 41 70 70 6c 69 63 61 74 | 69 6f 6e 2d 44 65 66 69 |Applicat|ion-Defi|
|00001550| 6e 65 64 20 52 6f 75 74 | 69 6e 65 73 14 14 31 2d |ned Rout|ines..1-|
|00001560| 38 33 0d 43 20 53 75 6d | 6d 61 72 79 14 14 31 2d |83.C Sum|mary..1-|
|00001570| 38 34 0d 44 61 74 61 20 | 54 79 70 65 73 14 14 31 |84.Data |Types..1|
|00001580| 2d 38 34 0d 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |-84.Memo|ry Manag|
|00001590| 65 6d 65 6e 74 20 52 6f | 75 74 69 6e 65 73 14 14 |ement Ro|utines..|
|000015a0| 31 2d 38 34 0d 41 70 70 | 6c 69 63 61 74 69 6f 6e |1-84.App|lication|
|000015b0| 2d 44 65 66 69 6e 65 64 | 20 52 6f 75 74 69 6e 65 |-Defined| Routine|
|000015c0| 73 14 14 31 2d 38 35 0d | 41 73 73 65 6d 62 6c 79 |s..1-85.|Assembly|
|000015d0| 2d 4c 61 6e 67 75 61 67 | 65 20 53 75 6d 6d 61 72 |-Languag|e Summar|
|000015e0| 79 14 14 31 2d 38 36 0d | 47 6c 6f 62 61 6c 20 56 |y..1-86.|Global V|
|000015f0| 61 72 69 61 62 6c 65 73 | 14 14 31 2d 38 36 0d 52 |ariables|..1-86.R|
|00001600| 65 73 75 6c 74 20 43 6f | 64 65 73 14 14 31 2d 38 |esult Co|des..1-8|
|00001610| 36 0d 43 68 61 70 74 65 | 72 20 32 09 4d 65 6d 6f |6.Chapte|r 2.Memo|
|00001620| 72 79 20 4d 61 6e 61 67 | 65 72 14 14 32 2d 31 0d |ry Manag|er..2-1.|
|00001630| 0d 41 62 6f 75 74 20 74 | 68 65 20 4d 65 6d 6f 72 |.About t|he Memor|
|00001640| 79 20 4d 61 6e 61 67 65 | 72 14 14 32 2d 33 0d 54 |y Manage|r..2-3.T|
|00001650| 65 6d 70 6f 72 61 72 79 | 20 4d 65 6d 6f 72 79 14 |emporary| Memory.|
|00001660| 14 32 2d 34 0d 4d 75 6c | 74 69 70 6c 65 20 48 65 |.2-4.Mul|tiple He|
|00001670| 61 70 20 5a 6f 6e 65 73 | 14 14 32 2d 35 0d 54 68 |ap Zones|..2-5.Th|
|00001680| 65 20 53 79 73 74 65 6d | 20 47 6c 6f 62 61 6c 20 |e System| Global |
|00001690| 56 61 72 69 61 62 6c 65 | 73 14 14 32 2d 36 0d 55 |Variable|s..2-6.U|
|000016a0| 73 69 6e 67 20 74 68 65 | 20 4d 65 6d 6f 72 79 20 |sing the| Memory |
|000016b0| 4d 61 6e 61 67 65 72 14 | 14 32 2d 37 0d 52 65 61 |Manager.|.2-7.Rea|
|000016c0| 64 69 6e 67 20 61 6e 64 | 20 57 72 69 74 69 6e 67 |ding and| Writing|
|000016d0| 20 53 79 73 74 65 6d 20 | 47 6c 6f 62 61 6c 20 56 | System |Global V|
|000016e0| 61 72 69 61 62 6c 65 73 | 14 14 32 2d 38 0d 45 78 |ariables|..2-8.Ex|
|000016f0| 74 65 6e 64 69 6e 67 20 | 61 6e 20 41 70 70 6c 69 |tending |an Appli|
|00001700| 63 61 74 69 6f 6e d5 73 | 20 4d 65 6d 6f 72 79 14 |cation.s| Memory.|
|00001710| 14 32 2d 39 0d 41 6c 6c | 6f 63 61 74 69 6e 67 20 |.2-9.All|ocating |
|00001720| 54 65 6d 70 6f 72 61 72 | 79 20 4d 65 6d 6f 72 79 |Temporar|y Memory|
|00001730| 14 14 32 2d 31 30 0d 44 | 65 74 65 72 6d 69 6e 69 |..2-10.D|etermini|
|00001740| 6e 67 20 74 68 65 20 46 | 65 61 74 75 72 65 73 20 |ng the F|eatures |
|00001750| 6f 66 20 54 65 6d 70 6f | 72 61 72 79 20 4d 65 6d |of Tempo|rary Mem|
|00001760| 6f 72 79 14 14 32 2d 31 | 31 0d 55 73 69 6e 67 20 |ory..2-1|1.Using |
|00001770| 74 68 65 20 53 79 73 74 | 65 6d 20 48 65 61 70 14 |the Syst|em Heap.|
|00001780| 14 32 2d 31 32 0d 41 6c | 6c 6f 63 61 74 69 6e 67 |.2-12.Al|locating|
|00001790| 20 4d 65 6d 6f 72 79 20 | 61 74 20 53 74 61 72 74 | Memory |at Start|
|000017a0| 75 70 20 54 69 6d 65 14 | 14 32 2d 31 33 0d 43 72 |up Time.|.2-13.Cr|
|000017b0| 65 61 74 69 6e 67 20 48 | 65 61 70 20 5a 6f 6e 65 |eating H|eap Zone|
|000017c0| 73 14 14 32 2d 31 34 0d | 49 6e 73 74 61 6c 6c 69 |s..2-14.|Installi|
|000017d0| 6e 67 20 61 20 50 75 72 | 67 65 2d 57 61 72 6e 69 |ng a Pur|ge-Warni|
|000017e0| 6e 67 20 50 72 6f 63 65 | 64 75 72 65 14 14 32 2d |ng Proce|dure..2-|
|000017f0| 31 36 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 20 |16.Organ|ization |
|00001800| 6f 66 20 4d 65 6d 6f 72 | 79 14 14 32 2d 31 39 0d |of Memor|y..2-19.|
|00001810| 48 65 61 70 20 5a 6f 6e | 65 73 14 14 32 2d 31 39 |Heap Zon|es..2-19|
|00001820| 0d 42 6c 6f 63 6b 20 48 | 65 61 64 65 72 73 14 14 |.Block H|eaders..|
|00001830| 32 2d 32 32 0d 4d 65 6d | 6f 72 79 20 4d 61 6e 61 |2-22.Mem|ory Mana|
|00001840| 67 65 72 20 52 65 66 65 | 72 65 6e 63 65 14 14 32 |ger Refe|rence..2|
|00001850| 2d 32 34 0d 44 61 74 61 | 20 54 79 70 65 73 14 14 |-24.Data| Types..|
|00001860| 32 2d 32 34 0d 4d 65 6d | 6f 72 79 20 4d 61 6e 61 |2-24.Mem|ory Mana|
|00001870| 67 65 72 20 52 6f 75 74 | 69 6e 65 73 14 14 32 2d |ger Rout|ines..2-|
|00001880| 32 36 0d 53 65 74 74 69 | 6e 67 20 55 70 20 74 68 |26.Setti|ng Up th|
|00001890| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 48 65 |e Applic|ation He|
|000018a0| 61 70 14 14 32 2d 32 37 | 0d 41 6c 6c 6f 63 61 74 |ap..2-27|.Allocat|
|000018b0| 69 6e 67 20 61 6e 64 20 | 52 65 6c 65 61 73 69 6e |ing and |Releasin|
|000018c0| 67 20 52 65 6c 6f 63 61 | 74 61 62 6c 65 20 42 6c |g Reloca|table Bl|
|000018d0| 6f 63 6b 73 20 6f 66 20 | 4d 65 6d 6f 72 79 14 14 |ocks of |Memory..|
|000018e0| 32 2d 32 39 0d 41 6c 6c | 6f 63 61 74 69 6e 67 20 |2-29.All|ocating |
|000018f0| 61 6e 64 20 52 65 6c 65 | 61 73 69 6e 67 20 4e 6f |and Rele|asing No|
|00001900| 6e 72 65 6c 6f 63 61 74 | 61 62 6c 65 20 42 6c 6f |nrelocat|able Blo|
|00001910| 63 6b 73 20 6f 66 20 4d | 65 6d 6f 72 79 14 14 32 |cks of M|emory..2|
|00001920| 2d 33 35 0d 43 68 61 6e | 67 69 6e 67 20 74 68 65 |-35.Chan|ging the|
|00001930| 20 53 69 7a 65 73 20 6f | 66 20 52 65 6c 6f 63 61 | Sizes o|f Reloca|
|00001940| 74 61 62 6c 65 20 61 6e | 64 20 4e 6f 6e 72 65 6c |table an|d Nonrel|
|00001950| 6f 63 61 74 61 62 6c 65 | 20 42 6c 6f 63 6b 73 14 |ocatable| Blocks.|
|00001960| 14 32 2d 33 39 0d 53 65 | 74 74 69 6e 67 20 74 68 |.2-39.Se|tting th|
|00001970| 65 20 50 72 6f 70 65 72 | 74 69 65 73 20 6f 66 20 |e Proper|ties of |
|00001980| 52 65 6c 6f 63 61 74 61 | 62 6c 65 20 42 6c 6f 63 |Relocata|ble Bloc|
|00001990| 6b 73 14 14 32 2d 34 33 | 0d 4d 61 6e 61 67 69 6e |ks..2-43|.Managin|
|000019a0| 67 20 52 65 6c 6f 63 61 | 74 61 62 6c 65 20 42 6c |g Reloca|table Bl|
|000019b0| 6f 63 6b 73 14 14 32 2d | 35 31 0d 4d 61 6e 69 70 |ocks..2-|51.Manip|
|000019c0| 75 6c 61 74 69 6e 67 20 | 42 6c 6f 63 6b 73 20 6f |ulating |Blocks o|
|000019d0| 66 20 4d 65 6d 6f 72 79 | 14 14 32 2d 35 39 0d 41 |f Memory|..2-59.A|
|000019e0| 73 73 65 73 73 69 6e 67 | 20 4d 65 6d 6f 72 79 20 |ssessing| Memory |
|000019f0| 43 6f 6e 64 69 74 69 6f | 6e 73 14 14 32 2d 36 36 |Conditio|ns..2-66|
|00001a00| 0d 46 72 65 65 69 6e 67 | 20 4d 65 6d 6f 72 79 14 |.Freeing| Memory.|
|00001a10| 14 32 2d 37 31 0d 47 72 | 6f 77 2d 5a 6f 6e 65 20 |.2-71.Gr|ow-Zone |
|00001a20| 4f 70 65 72 61 74 69 6f | 6e 73 14 14 32 2d 37 36 |Operatio|ns..2-76|
|00001a30| 0d 41 6c 6c 6f 63 61 74 | 69 6e 67 20 54 65 6d 70 |.Allocat|ing Temp|
|00001a40| 6f 72 61 72 79 20 4d 65 | 6d 6f 72 79 14 14 32 2d |orary Me|mory..2-|
|00001a50| 37 37 0d 41 63 63 65 73 | 73 69 6e 67 20 48 65 61 |77.Acces|sing Hea|
|00001a60| 70 20 5a 6f 6e 65 73 14 | 14 32 2d 38 30 0d 4d 61 |p Zones.|.2-80.Ma|
|00001a70| 6e 69 70 75 6c 61 74 69 | 6e 67 20 48 65 61 70 20 |nipulati|ng Heap |
|00001a80| 5a 6f 6e 65 73 14 14 32 | 2d 38 33 0d 41 70 70 6c |Zones..2|-83.Appl|
|00001a90| 69 63 61 74 69 6f 6e 2d | 44 65 66 69 6e 65 64 20 |ication-|Defined |
|00001aa0| 52 6f 75 74 69 6e 65 73 | 14 14 32 2d 38 39 0d 47 |Routines|..2-89.G|
|00001ab0| 72 6f 77 2d 5a 6f 6e 65 | 20 46 75 6e 63 74 69 6f |row-Zone| Functio|
|00001ac0| 6e 73 14 14 32 2d 38 39 | 0d 50 75 72 67 65 2d 57 |ns..2-89|.Purge-W|
|00001ad0| 61 72 6e 69 6e 67 20 50 | 72 6f 63 65 64 75 72 65 |arning P|rocedure|
|00001ae0| 73 14 14 32 2d 39 30 0d | 53 75 6d 6d 61 72 79 20 |s..2-90.|Summary |
|00001af0| 6f 66 20 74 68 65 20 4d | 65 6d 6f 72 79 20 4d 61 |of the M|emory Ma|
|00001b00| 6e 61 67 65 72 14 14 32 | 2d 39 33 0d 50 61 73 63 |nager..2|-93.Pasc|
|00001b10| 61 6c 20 53 75 6d 6d 61 | 72 79 14 14 32 2d 39 33 |al Summa|ry..2-93|
|00001b20| 0d 43 6f 6e 73 74 61 6e | 74 73 14 14 32 2d 39 33 |.Constan|ts..2-93|
|00001b30| 0d 44 61 74 61 20 54 79 | 70 65 73 14 14 32 2d 39 |.Data Ty|pes..2-9|
|00001b40| 33 0d 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 72 |3.Memory| Manager|
|00001b50| 20 52 6f 75 74 69 6e 65 | 73 14 14 32 2d 39 34 0d | Routine|s..2-94.|
|00001b60| 41 70 70 6c 69 63 61 74 | 69 6f 6e 2d 44 65 66 69 |Applicat|ion-Defi|
|00001b70| 6e 65 64 20 52 6f 75 74 | 69 6e 65 73 14 14 32 2d |ned Rout|ines..2-|
|00001b80| 39 37 0d 43 20 53 75 6d | 6d 61 72 79 14 14 32 2d |97.C Sum|mary..2-|
|00001b90| 39 37 0d 43 6f 6e 73 74 | 61 6e 74 73 14 14 32 2d |97.Const|ants..2-|
|00001ba0| 39 37 0d 44 61 74 61 20 | 54 79 70 65 73 14 14 32 |97.Data |Types..2|
|00001bb0| 2d 39 37 0d 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |-97.Memo|ry Manag|
|00001bc0| 65 72 20 52 6f 75 74 69 | 6e 65 73 14 14 32 2d 39 |er Routi|nes..2-9|
|00001bd0| 38 0d 41 70 70 6c 69 63 | 61 74 69 6f 6e 2d 44 65 |8.Applic|ation-De|
|00001be0| 66 69 6e 65 64 20 52 6f | 75 74 69 6e 65 73 14 14 |fined Ro|utines..|
|00001bf0| 32 2d 31 30 31 0d 41 73 | 73 65 6d 62 6c 79 2d 4c |2-101.As|sembly-L|
|00001c00| 61 6e 67 75 61 67 65 20 | 53 75 6d 6d 61 72 79 14 |anguage |Summary.|
|00001c10| 14 32 2d 31 30 31 0d 43 | 6f 6e 73 74 61 6e 74 73 |.2-101.C|onstants|
|00001c20| 14 14 32 2d 31 30 31 0d | 44 61 74 61 20 53 74 72 |..2-101.|Data Str|
|00001c30| 75 63 74 75 72 65 73 14 | 14 32 2d 31 30 32 0d 54 |uctures.|.2-102.T|
|00001c40| 72 61 70 20 4d 61 63 72 | 6f 73 14 14 32 2d 31 30 |rap Macr|os..2-10|
|00001c50| 32 0d 47 6c 6f 62 61 6c | 20 56 61 72 69 61 62 6c |2.Global| Variabl|
|00001c60| 65 73 14 14 32 2d 31 30 | 34 0d 52 65 73 75 6c 74 |es..2-10|4.Result|
|00001c70| 20 43 6f 64 65 73 14 14 | 32 2d 31 30 35 0d 43 68 | Codes..|2-105.Ch|
|00001c80| 61 70 74 65 72 20 33 09 | 56 69 72 74 75 61 6c 20 |apter 3.|Virtual |
|00001c90| 4d 65 6d 6f 72 79 20 4d | 61 6e 61 67 65 72 14 14 |Memory M|anager..|
|00001ca0| 33 2d 31 0d 0d 41 62 6f | 75 74 20 74 68 65 20 56 |3-1..Abo|ut the V|
|00001cb0| 69 72 74 75 61 6c 20 4d | 65 6d 6f 72 79 20 4d 61 |irtual M|emory Ma|
|00001cc0| 6e 61 67 65 72 14 14 33 | 2d 33 0d 56 69 72 74 75 |nager..3|-3.Virtu|
|00001cd0| 61 6c 20 4d 65 6d 6f 72 | 79 14 14 33 2d 34 0d 54 |al Memor|y..3-4.T|
|00001ce0| 68 65 20 4c 6f 67 69 63 | 61 6c 20 41 64 64 72 65 |he Logic|al Addre|
|00001cf0| 73 73 20 53 70 61 63 65 | 14 14 33 2d 35 0d 32 34 |ss Space|..3-5.24|
|00001d00| 2d 42 69 74 20 41 64 64 | 72 65 73 73 69 6e 67 14 |-Bit Add|ressing.|
|00001d10| 14 33 2d 35 0d 33 32 2d | 42 69 74 20 41 64 64 72 |.3-5.32-|Bit Addr|
|00001d20| 65 73 73 69 6e 67 14 14 | 33 2d 37 0d 54 68 65 20 |essing..|3-7.The |
|00001d30| 50 68 79 73 69 63 61 6c | 20 41 64 64 72 65 73 73 |Physical| Address|
|00001d40| 20 53 70 61 63 65 14 14 | 33 2d 39 0d 50 61 67 65 | Space..|3-9.Page|
|00001d50| 20 46 61 75 6c 74 73 14 | 14 33 2d 31 31 0d 55 73 | Faults.|.3-11.Us|
|00001d60| 69 6e 67 20 74 68 65 20 | 56 69 72 74 75 61 6c 20 |ing the |Virtual |
|00001d70| 4d 65 6d 6f 72 79 20 4d | 61 6e 61 67 65 72 14 14 |Memory M|anager..|
|00001d80| 33 2d 31 33 0d 4f 62 74 | 61 69 6e 69 6e 67 20 49 |3-13.Obt|aining I|
|00001d90| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 41 62 6f 75 74 |nformati|on About|
|00001da0| 20 56 69 72 74 75 61 6c | 20 4d 65 6d 6f 72 79 14 | Virtual| Memory.|
|00001db0| 14 33 2d 31 34 0d 48 6f | 6c 64 69 6e 67 20 61 6e |.3-14.Ho|lding an|
|00001dc0| 64 20 52 65 6c 65 61 73 | 69 6e 67 20 4d 65 6d 6f |d Releas|ing Memo|
|00001dd0| 72 79 14 14 33 2d 31 34 | 0d 4c 6f 63 6b 69 6e 67 |ry..3-14|.Locking|
|00001de0| 20 61 6e 64 20 55 6e 6c | 6f 63 6b 69 6e 67 20 4d | and Unl|ocking M|
|00001df0| 65 6d 6f 72 79 14 14 33 | 2d 31 35 0d 4d 61 70 70 |emory..3|-15.Mapp|
|00001e00| 69 6e 67 20 4c 6f 67 69 | 63 61 6c 20 74 6f 20 50 |ing Logi|cal to P|
|00001e10| 68 79 73 69 63 61 6c 20 | 41 64 64 72 65 73 73 65 |hysical |Addresse|
|00001e20| 73 14 14 33 2d 31 36 0d | 44 65 66 65 72 72 69 6e |s..3-16.|Deferrin|
|00001e30| 67 20 55 73 65 72 20 49 | 6e 74 65 72 72 75 70 74 |g User I|nterrupt|
|00001e40| 20 48 61 6e 64 6c 69 6e | 67 14 14 33 2d 32 30 0d | Handlin|g..3-20.|
|00001e50| 56 69 72 74 75 61 6c 20 | 4d 65 6d 6f 72 79 20 61 |Virtual |Memory a|
|00001e60| 6e 64 20 44 65 62 75 67 | 67 65 72 73 14 14 33 2d |nd Debug|gers..3-|
|00001e70| 32 31 0d 42 75 73 2d 45 | 72 72 6f 72 20 56 65 63 |21.Bus-E|rror Vec|
|00001e80| 74 6f 72 73 14 14 33 2d | 32 32 0d 53 70 65 63 69 |tors..3-|22.Speci|
|00001e90| 61 6c 20 4e 6f 6e 6d 61 | 73 6b 61 62 6c 65 20 49 |al Nonma|skable I|
|00001ea0| 6e 74 65 72 72 75 70 74 | 20 4e 65 65 64 73 14 14 |nterrupt| Needs..|
|00001eb0| 33 2d 32 32 0d 53 75 70 | 65 72 76 69 73 6f 72 20 |3-22.Sup|ervisor |
|00001ec0| 4d 6f 64 65 14 14 33 2d | 32 33 0d 54 68 65 20 44 |Mode..3-|23.The D|
|00001ed0| 65 62 75 67 67 69 6e 67 | 20 53 74 61 74 65 14 14 |ebugging| State..|
|00001ee0| 33 2d 32 33 0d 4b 65 79 | 62 6f 61 72 64 20 49 6e |3-23.Key|board In|
|00001ef0| 70 75 74 14 14 33 2d 32 | 33 0d 50 61 67 65 20 53 |put..3-2|3.Page S|
|00001f00| 74 61 74 65 73 14 14 33 | 2d 32 34 0d 56 69 72 74 |tates..3|-24.Virt|
|00001f10| 75 61 6c 20 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |ual Memo|ry Manag|
|00001f20| 65 72 20 52 65 66 65 72 | 65 6e 63 65 14 14 33 2d |er Refer|ence..3-|
|00001f30| 32 34 0d 44 61 74 61 20 | 53 74 72 75 63 74 75 72 |24.Data |Structur|
|00001f40| 65 73 14 14 33 2d 32 34 | 0d 4d 65 6d 6f 72 79 2d |es..3-24|.Memory-|
|00001f50| 42 6c 6f 63 6b 20 52 65 | 63 6f 72 64 14 14 33 2d |Block Re|cord..3-|
|00001f60| 32 34 0d 54 72 61 6e 73 | 6c 61 74 69 6f 6e 20 54 |24.Trans|lation T|
|00001f70| 61 62 6c 65 14 14 33 2d | 32 35 0d 52 6f 75 74 69 |able..3-|25.Routi|
|00001f80| 6e 65 73 14 14 33 2d 32 | 35 0d 56 69 72 74 75 61 |nes..3-2|5.Virtua|
|00001f90| 6c 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 6d |l Memory| Managem|
|00001fa0| 65 6e 74 14 14 33 2d 32 | 35 0d 56 69 72 74 75 61 |ent..3-2|5.Virtua|
|00001fb0| 6c 20 4d 65 6d 6f 72 79 | 20 44 65 62 75 67 67 65 |l Memory| Debugge|
|00001fc0| 72 20 53 75 70 70 6f 72 | 74 20 52 6f 75 74 69 6e |r Suppor|t Routin|
|00001fd0| 65 73 14 14 33 2d 33 34 | 0d 53 75 6d 6d 61 72 79 |es..3-34|.Summary|
|00001fe0| 20 6f 66 20 74 68 65 20 | 56 69 72 74 75 61 6c 20 | of the |Virtual |
|00001ff0| 4d 65 6d 6f 72 79 20 4d | 61 6e 61 67 65 72 14 14 |Memory M|anager..|
|00002000| 33 2d 34 31 0d 50 61 73 | 63 61 6c 20 53 75 6d 6d |3-41.Pas|cal Summ|
|00002010| 61 72 79 14 14 33 2d 34 | 31 0d 43 6f 6e 73 74 61 |ary..3-4|1.Consta|
|00002020| 6e 74 73 14 14 33 2d 34 | 31 0d 44 61 74 61 20 54 |nts..3-4|1.Data T|
|00002030| 79 70 65 73 14 14 33 2d | 34 31 0d 52 6f 75 74 69 |ypes..3-|41.Routi|
|00002040| 6e 65 73 14 14 33 2d 34 | 32 0d 43 20 53 75 6d 6d |nes..3-4|2.C Summ|
|00002050| 61 72 79 14 14 33 2d 34 | 32 0d 43 6f 6e 73 74 61 |ary..3-4|2.Consta|
|00002060| 6e 74 73 14 14 33 2d 34 | 32 0d 44 61 74 61 20 54 |nts..3-4|2.Data T|
|00002070| 79 70 65 73 14 14 33 2d | 34 33 0d 52 6f 75 74 69 |ypes..3-|43.Routi|
|00002080| 6e 65 73 14 14 33 2d 34 | 33 0d 41 73 73 65 6d 62 |nes..3-4|3.Assemb|
|00002090| 6c 79 2d 4c 61 6e 67 75 | 61 67 65 20 53 75 6d 6d |ly-Langu|age Summ|
|000020a0| 61 72 79 14 14 33 2d 34 | 34 0d 44 61 74 61 20 54 |ary..3-4|4.Data T|
|000020b0| 79 70 65 73 14 14 33 2d | 34 34 0d 54 72 61 70 20 |ypes..3-|44.Trap |
|000020c0| 4d 61 63 72 6f 73 14 14 | 33 2d 34 34 0d 52 65 73 |Macros..|3-44.Res|
|000020d0| 75 6c 74 20 43 6f 64 65 | 73 14 14 33 2d 34 35 0d |ult Code|s..3-45.|
|000020e0| 43 68 61 70 74 65 72 20 | 34 09 4d 65 6d 6f 72 79 |Chapter |4.Memory|
|000020f0| 20 4d 61 6e 61 67 65 6d | 65 6e 74 20 55 74 69 6c | Managem|ent Util|
|00002100| 69 74 69 65 73 14 14 34 | 2d 31 0d 0d 54 68 65 20 |ities..4|-1..The |
|00002110| 4d 65 6d 6f 72 79 20 43 | 6f 6e 74 72 6f 6c 20 50 |Memory C|ontrol P|
|00002120| 61 6e 65 6c 14 14 34 2d | 33 0d 41 62 6f 75 74 20 |anel..4-|3.About |
|00002130| 74 68 65 20 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |the Memo|ry Manag|
|00002140| 65 6d 65 6e 74 20 55 74 | 69 6c 69 74 69 65 73 14 |ement Ut|ilities.|
|00002150| 14 34 2d 35 0d 54 68 65 | 20 41 35 20 52 65 67 69 |.4-5.The| A5 Regi|
|00002160| 73 74 65 72 14 14 34 2d | 35 0d 41 64 64 72 65 73 |ster..4-|5.Addres|
|00002170| 73 69 6e 67 20 4d 6f 64 | 65 73 14 14 34 2d 37 0d |sing Mod|es..4-7.|
|00002180| 41 64 64 72 65 73 73 20 | 54 72 61 6e 73 6c 61 74 |Address |Translat|
|00002190| 69 6f 6e 14 14 34 2d 38 | 0d 50 72 6f 63 65 73 73 |ion..4-8|.Process|
|000021a0| 6f 72 20 43 61 63 68 65 | 73 14 14 34 2d 38 0d 53 |or Cache|s..4-8.S|
|000021b0| 74 61 6c 65 20 49 6e 73 | 74 72 75 63 74 69 6f 6e |tale Ins|truction|
|000021c0| 73 14 14 34 2d 39 0d 53 | 74 61 6c 65 20 44 61 74 |s..4-9.S|tale Dat|
|000021d0| 61 14 14 34 2d 31 30 0d | 55 73 69 6e 67 20 74 68 |a..4-10.|Using th|
|000021e0| 65 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 6d |e Memory| Managem|
|000021f0| 65 6e 74 20 55 74 69 6c | 69 74 69 65 73 14 14 34 |ent Util|ities..4|
|00002200| 2d 31 33 0d 41 63 63 65 | 73 73 69 6e 67 20 74 68 |-13.Acce|ssing th|
|00002210| 65 20 41 35 20 57 6f 72 | 6c 64 20 69 6e 20 43 6f |e A5 Wor|ld in Co|
|00002220| 6d 70 6c 65 74 69 6f 6e | 20 52 6f 75 74 69 6e 65 |mpletion| Routine|
|00002230| 73 14 14 34 2d 31 34 0d | 41 63 63 65 73 73 69 6e |s..4-14.|Accessin|
|00002240| 67 20 74 68 65 20 41 35 | 20 57 6f 72 6c 64 20 69 |g the A5| World i|
|00002250| 6e 20 49 6e 74 65 72 72 | 75 70 74 20 54 61 73 6b |n Interr|upt Task|
|00002260| 73 14 14 34 2d 31 36 0d | 55 73 69 6e 67 20 51 75 |s..4-16.|Using Qu|
|00002270| 69 63 6b 44 72 61 77 20 | 47 6c 6f 62 61 6c 20 56 |ickDraw |Global V|
|00002280| 61 72 69 61 62 6c 65 73 | 20 69 6e 20 53 74 61 6e |ariables| in Stan|
|00002290| 64 2d 41 6c 6f 6e 65 20 | 43 6f 64 65 14 14 34 2d |d-Alone |Code..4-|
|000022a0| 31 38 0d 53 77 69 74 63 | 68 69 6e 67 20 41 64 64 |18.Switc|hing Add|
|000022b0| 72 65 73 73 69 6e 67 20 | 4d 6f 64 65 73 14 14 34 |ressing |Modes..4|
|000022c0| 2d 32 30 0d 53 74 72 69 | 70 70 69 6e 67 20 46 6c |-20.Stri|pping Fl|
|000022d0| 61 67 20 42 69 74 73 20 | 46 72 6f 6d 20 4d 65 6d |ag Bits |From Mem|
|000022e0| 6f 72 79 20 41 64 64 72 | 65 73 73 65 73 14 14 34 |ory Addr|esses..4|
|000022f0| 2d 32 31 0d 54 72 61 6e | 73 6c 61 74 69 6e 67 20 |-21.Tran|slating |
|00002300| 4d 65 6d 6f 72 79 20 41 | 64 64 72 65 73 73 65 73 |Memory A|ddresses|
|00002310| 14 14 34 2d 32 33 0d 4d | 65 6d 6f 72 79 20 4d 61 |..4-23.M|emory Ma|
|00002320| 6e 61 67 65 6d 65 6e 74 | 20 55 74 69 6c 69 74 69 |nagement| Utiliti|
|00002330| 65 73 20 52 65 66 65 72 | 65 6e 63 65 14 14 34 2d |es Refer|ence..4-|
|00002340| 32 34 0d 52 6f 75 74 69 | 6e 65 73 14 14 34 2d 32 |24.Routi|nes..4-2|
|00002350| 34 0d 53 65 74 74 69 6e | 67 20 61 6e 64 20 52 65 |4.Settin|g and Re|
|00002360| 73 74 6f 72 69 6e 67 20 | 74 68 65 20 41 35 20 52 |storing |the A5 R|
|00002370| 65 67 69 73 74 65 72 14 | 14 34 2d 32 34 0d 43 68 |egister.|.4-24.Ch|
|00002380| 61 6e 67 69 6e 67 20 74 | 68 65 20 41 64 64 72 65 |anging t|he Addre|
|00002390| 73 73 69 6e 67 20 4d 6f | 64 65 14 14 34 2d 32 36 |ssing Mo|de..4-26|
|000023a0| 0d 4d 61 6e 69 70 75 6c | 61 74 69 6e 67 20 4d 65 |.Manipul|ating Me|
|000023b0| 6d 6f 72 79 20 41 64 64 | 72 65 73 73 65 73 14 14 |mory Add|resses..|
|000023c0| 34 2d 32 37 0d 4d 61 6e | 69 70 75 6c 61 74 69 6e |4-27.Man|ipulatin|
|000023d0| 67 20 74 68 65 20 50 72 | 6f 63 65 73 73 6f 72 20 |g the Pr|ocessor |
|000023e0| 43 61 63 68 65 73 14 14 | 34 2d 32 39 0d 53 75 6d |Caches..|4-29.Sum|
|000023f0| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 4d 65 6d 6f |mary of |the Memo|
|00002400| 72 79 20 4d 61 6e 61 67 | 65 6d 65 6e 74 20 55 74 |ry Manag|ement Ut|
|00002410| 69 6c 69 74 69 65 73 14 | 14 34 2d 33 34 0d 50 61 |ilities.|.4-34.Pa|
|00002420| 73 63 61 6c 20 53 75 6d | 6d 61 72 79 14 14 34 2d |scal Sum|mary..4-|
|00002430| 33 34 0d 43 6f 6e 73 74 | 61 6e 74 73 14 14 34 2d |34.Const|ants..4-|
|00002440| 33 34 0d 52 6f 75 74 69 | 6e 65 73 14 14 34 2d 33 |34.Routi|nes..4-3|
|00002450| 34 0d 43 20 53 75 6d 6d | 61 72 79 14 14 34 2d 33 |4.C Summ|ary..4-3|
|00002460| 35 0d 43 6f 6e 73 74 61 | 6e 74 73 14 14 34 2d 33 |5.Consta|nts..4-3|
|00002470| 35 0d 52 6f 75 74 69 6e | 65 73 14 14 34 2d 33 35 |5.Routin|es..4-35|
|00002480| 0d 41 73 73 65 6d 62 6c | 79 2d 4c 61 6e 67 75 61 |.Assembl|y-Langua|
|00002490| 67 65 20 53 75 6d 6d 61 | 72 79 14 14 34 2d 33 36 |ge Summa|ry..4-36|
|000024a0| 0d 54 72 61 70 20 4d 61 | 63 72 6f 73 14 14 34 2d |.Trap Ma|cros..4-|
|000024b0| 33 36 0d 47 6c 6f 62 61 | 6c 20 56 61 72 69 61 62 |36.Globa|l Variab|
|000024c0| 6c 65 73 14 14 34 2d 33 | 36 0d 52 65 73 75 6c 74 |les..4-3|6.Result|
|000024d0| 20 43 6f 64 65 73 14 14 | 34 2d 33 36 0d 47 6c 6f | Codes..|4-36.Glo|
|000024e0| 73 73 61 72 79 14 14 47 | 4c 2d 31 0d 0d 49 6e 64 |ssary..G|L-1..Ind|
|000024f0| 65 78 14 14 49 4e 2d 31 | 0d 46 69 67 75 72 65 73 |ex..IN-1|.Figures|
|00002500| 2c 20 54 61 62 6c 65 73 | 2c 20 61 6e 64 20 4c 69 |, Tables|, and Li|
|00002510| 73 74 69 6e 67 73 0d 43 | 68 61 70 74 65 72 20 31 |stings.C|hapter 1|
|00002520| 09 49 6e 74 72 6f 64 75 | 63 74 69 6f 6e 20 74 6f |.Introdu|ction to|
|00002530| 20 4d 65 6d 6f 72 79 20 | 4d 61 6e 61 67 65 6d 65 | Memory |Manageme|
|00002540| 6e 74 14 14 31 2d 31 0d | 0d 46 69 67 75 72 65 20 |nt..1-1.|.Figure |
|00002550| 31 2d 31 09 4d 65 6d 6f | 72 79 20 6f 72 67 61 6e |1-1.Memo|ry organ|
|00002560| 69 7a 61 74 69 6f 6e 20 | 77 69 74 68 20 73 65 76 |ization |with sev|
|00002570| 65 72 61 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |eral app|lication|
|00002580| 73 20 6f 70 65 6e 14 14 | 31 2d 35 0d 46 69 67 75 |s open..|1-5.Figu|
|00002590| 72 65 20 31 2d 32 09 4f | 72 67 61 6e 69 7a 61 74 |re 1-2.O|rganizat|
|000025a0| 69 6f 6e 20 6f 66 20 61 | 6e 20 61 70 70 6c 69 63 |ion of a|n applic|
|000025b0| 61 74 69 6f 6e 20 70 61 | 72 74 69 74 69 6f 6e 14 |ation pa|rtition.|
|000025c0| 14 31 2d 37 0d 46 69 67 | 75 72 65 20 31 2d 33 09 |.1-7.Fig|ure 1-3.|
|000025d0| 54 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |The appl|ication |
|000025e0| 73 74 61 63 6b 14 14 31 | 2d 39 0d 46 69 67 75 72 |stack..1|-9.Figur|
|000025f0| 65 20 31 2d 34 09 41 20 | 66 72 61 67 6d 65 6e 74 |e 1-4.A |fragment|
|00002600| 65 64 20 68 65 61 70 14 | 14 31 2d 31 30 0d 46 69 |ed heap.|.1-10.Fi|
|00002610| 67 75 72 65 20 31 2d 35 | 09 41 20 63 6f 6d 70 61 |gure 1-5|.A compa|
|00002620| 63 74 65 64 20 68 65 61 | 70 14 14 31 2d 31 31 0d |cted hea|p..1-11.|
|00002630| 46 69 67 75 72 65 20 31 | 2d 36 09 4f 72 67 61 6e |Figure 1|-6.Organ|
|00002640| 69 7a 61 74 69 6f 6e 20 | 6f 66 20 61 6e 20 61 70 |ization |of an ap|
|00002650| 70 6c 69 63 61 74 69 6f | 6e d5 73 20 41 35 20 77 |plicatio|n.s A5 w|
|00002660| 6f 72 6c 64 14 14 31 2d | 31 32 0d 46 69 67 75 72 |orld..1-|12.Figur|
|00002670| 65 20 31 2d 37 09 55 73 | 69 6e 67 20 74 65 6d 70 |e 1-7.Us|ing temp|
|00002680| 6f 72 61 72 79 20 6d 65 | 6d 6f 72 79 20 61 6c 6c |orary me|mory all|
|00002690| 6f 63 61 74 65 64 20 66 | 72 6f 6d 20 75 6e 75 73 |ocated f|rom unus|
|000026a0| 65 64 20 52 41 4d 14 14 | 31 2d 31 34 0d 46 69 67 |ed RAM..|1-14.Fig|
|000026b0| 75 72 65 20 31 2d 38 09 | 41 20 70 6f 69 6e 74 65 |ure 1-8.|A pointe|
|000026c0| 72 20 74 6f 20 61 20 6e | 6f 6e 72 65 6c 6f 63 61 |r to a n|onreloca|
|000026d0| 74 61 62 6c 65 20 62 6c | 6f 63 6b 14 14 31 2d 31 |table bl|ock..1-1|
|000026e0| 37 0d 46 69 67 75 72 65 | 20 31 2d 39 09 41 20 68 |7.Figure| 1-9.A h|
|000026f0| 61 6e 64 6c 65 20 74 6f | 20 61 20 72 65 6c 6f 63 |andle to| a reloc|
|00002700| 61 74 61 62 6c 65 20 62 | 6c 6f 63 6b 14 14 31 2d |atable b|lock..1-|
|00002710| 31 39 0d 46 69 67 75 72 | 65 20 31 2d 31 30 09 50 |19.Figur|e 1-10.P|
|00002720| 75 72 67 69 6e 67 20 61 | 6e 64 20 72 65 61 6c 6c |urging a|nd reall|
|00002730| 6f 63 61 74 69 6e 67 20 | 61 20 72 65 6c 6f 63 61 |ocating |a reloca|
|00002740| 74 61 62 6c 65 20 62 6c | 6f 63 6b 14 14 31 2d 32 |table bl|ock..1-2|
|00002750| 32 0d 46 69 67 75 72 65 | 20 31 2d 31 31 09 41 6c |2.Figure| 1-11.Al|
|00002760| 6c 6f 63 61 74 69 6e 67 | 20 61 20 6e 6f 6e 72 65 |locating| a nonre|
|00002770| 6c 6f 63 61 74 61 62 6c | 65 20 62 6c 6f 63 6b 14 |locatabl|e block.|
|00002780| 14 31 2d 32 33 0d 46 69 | 67 75 72 65 20 31 2d 31 |.1-23.Fi|gure 1-1|
|00002790| 32 09 41 6e 20 65 66 66 | 65 63 74 69 76 65 6c 79 |2.An eff|ectively|
|000027a0| 20 70 61 72 74 69 74 69 | 6f 6e 65 64 20 68 65 61 | partiti|oned hea|
|000027b0| 70 14 14 31 2d 32 36 0d | 4c 69 73 74 69 6e 67 20 |p..1-26.|Listing |
|000027c0| 31 2d 31 09 4c 6f 63 6b | 69 6e 67 20 61 20 62 6c |1-1.Lock|ing a bl|
|000027d0| 6f 63 6b 20 74 6f 20 61 | 76 6f 69 64 20 64 61 6e |ock to a|void dan|
|000027e0| 67 6c 69 6e 67 20 70 6f | 69 6e 74 65 72 73 14 14 |gling po|inters..|
|000027f0| 31 2d 33 30 0d 4c 69 73 | 74 69 6e 67 20 31 2d 32 |1-30.Lis|ting 1-2|
|00002800| 09 43 72 65 61 74 69 6e | 67 20 61 20 66 61 6b 65 |.Creatin|g a fake|
|00002810| 20 68 61 6e 64 6c 65 14 | 14 31 2d 33 35 0d 4c 69 | handle.|.1-35.Li|
|00002820| 73 74 69 6e 67 20 31 2d | 33 09 49 6e 63 72 65 61 |sting 1-|3.Increa|
|00002830| 73 69 6e 67 20 74 68 65 | 20 61 6d 6f 75 6e 74 20 |sing the| amount |
|00002840| 6f 66 20 73 70 61 63 65 | 20 61 6c 6c 6f 63 61 74 |of space| allocat|
|00002850| 65 64 20 66 6f 72 20 74 | 68 65 20 73 74 61 63 6b |ed for t|he stack|
|00002860| 14 14 31 2d 34 30 0d 4c | 69 73 74 69 6e 67 20 31 |..1-40.L|isting 1|
|00002870| 2d 34 09 53 65 74 74 69 | 6e 67 20 75 70 20 79 6f |-4.Setti|ng up yo|
|00002880| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |ur appli|cation h|
|00002890| 65 61 70 20 61 6e 64 20 | 73 74 61 63 6b 14 14 31 |eap and |stack..1|
|000028a0| 2d 34 32 0d 4c 69 73 74 | 69 6e 67 20 31 2d 35 09 |-42.List|ing 1-5.|
|000028b0| 44 65 74 65 72 6d 69 6e | 69 6e 67 20 77 68 65 74 |Determin|ing whet|
|000028c0| 68 65 72 20 61 6c 6c 6f | 63 61 74 69 6e 67 20 6d |her allo|cating m|
|000028d0| 65 6d 6f 72 79 20 77 6f | 75 6c 64 20 64 65 70 6c |emory wo|uld depl|
|000028e0| 65 74 65 20 74 68 65 20 | 0d 6d 65 6d 6f 72 79 20 |ete the |.memory |
|000028f0| 63 75 73 68 69 6f 6e 14 | 14 31 2d 34 33 0d 4c 69 |cushion.|.1-43.Li|
|00002900| 73 74 69 6e 67 20 31 2d | 36 09 41 6c 6c 6f 63 61 |sting 1-|6.Alloca|
|00002910| 74 69 6e 67 20 72 65 6c | 6f 63 61 74 61 62 6c 65 |ting rel|ocatable|
|00002920| 20 62 6c 6f 63 6b 73 14 | 14 31 2d 34 34 0d 4c 69 | blocks.|.1-44.Li|
|00002930| 73 74 69 6e 67 20 31 2d | 37 09 41 6c 6c 6f 63 61 |sting 1-|7.Alloca|
|00002940| 74 69 6e 67 20 6e 6f 6e | 72 65 6c 6f 63 61 74 61 |ting non|relocata|
|00002950| 62 6c 65 20 62 6c 6f 63 | 6b 73 14 14 31 2d 34 35 |ble bloc|ks..1-45|
|00002960| 0d 4c 69 73 74 69 6e 67 | 20 31 2d 38 09 41 6c 6c |.Listing| 1-8.All|
|00002970| 6f 63 61 74 69 6e 67 20 | 61 20 64 69 61 6c 6f 67 |ocating |a dialog|
|00002980| 20 72 65 63 6f 72 64 14 | 14 31 2d 34 35 0d 4c 69 | record.|.1-45.Li|
|00002990| 73 74 69 6e 67 20 31 2d | 39 09 43 72 65 61 74 69 |sting 1-|9.Creati|
|000029a0| 6e 67 20 61 6e 20 65 6d | 65 72 67 65 6e 63 79 20 |ng an em|ergency |
|000029b0| 6d 65 6d 6f 72 79 20 72 | 65 73 65 72 76 65 14 14 |memory r|eserve..|
|000029c0| 31 2d 34 36 0d 4c 69 73 | 74 69 6e 67 20 31 2d 31 |1-46.Lis|ting 1-1|
|000029d0| 30 09 43 68 65 63 6b 69 | 6e 67 20 74 68 65 20 65 |0.Checki|ng the e|
|000029e0| 6d 65 72 67 65 6e 63 79 | 20 6d 65 6d 6f 72 79 20 |mergency| memory |
|000029f0| 72 65 73 65 72 76 65 14 | 14 31 2d 34 37 0d 4c 69 |reserve.|.1-47.Li|
|00002a00| 73 74 69 6e 67 20 31 2d | 31 31 09 44 65 74 65 72 |sting 1-|11.Deter|
|00002a10| 6d 69 6e 69 6e 67 20 77 | 68 65 74 68 65 72 20 61 |mining w|hether a|
|00002a20| 6c 6c 6f 63 61 74 69 6e | 67 20 6d 65 6d 6f 72 79 |llocatin|g memory|
|00002a30| 20 77 6f 75 6c 64 20 64 | 65 70 6c 65 74 65 20 74 | would d|eplete t|
|00002a40| 68 65 20 0d 6d 65 6d 6f | 72 79 20 63 75 73 68 69 |he .memo|ry cushi|
|00002a50| 6f 6e 14 14 31 2d 34 37 | 0d 4c 69 73 74 69 6e 67 |on..1-47|.Listing|
|00002a60| 20 31 2d 31 32 09 52 65 | 61 6c 6c 6f 63 61 74 69 | 1-12.Re|allocati|
|00002a70| 6e 67 20 74 68 65 20 65 | 6d 65 72 67 65 6e 63 79 |ng the e|mergency|
|00002a80| 20 6d 65 6d 6f 72 79 20 | 72 65 73 65 72 76 65 14 | memory |reserve.|
|00002a90| 14 31 2d 34 38 0d 4c 69 | 73 74 69 6e 67 20 31 2d |.1-48.Li|sting 1-|
|00002aa0| 31 33 09 41 20 67 72 6f | 77 2d 7a 6f 6e 65 20 66 |13.A gro|w-zone f|
|00002ab0| 75 6e 63 74 69 6f 6e 20 | 74 68 61 74 20 72 65 6c |unction |that rel|
|00002ac0| 65 61 73 65 73 20 65 6d | 65 72 67 65 6e 63 79 20 |eases em|ergency |
|00002ad0| 73 74 6f 72 61 67 65 14 | 14 31 2d 34 39 0d 43 68 |storage.|.1-49.Ch|
|00002ae0| 61 70 74 65 72 20 32 09 | 4d 65 6d 6f 72 79 20 4d |apter 2.|Memory M|
|00002af0| 61 6e 61 67 65 72 14 14 | 32 2d 31 0d 0d 46 69 67 |anager..|2-1..Fig|
|00002b00| 75 72 65 20 32 2d 31 09 | 41 20 62 6c 6f 63 6b 20 |ure 2-1.|A block |
|00002b10| 68 65 61 64 65 72 20 69 | 6e 20 61 20 32 34 2d 62 |header i|n a 24-b|
|00002b20| 69 74 20 7a 6f 6e 65 14 | 14 32 2d 32 32 0d 46 69 |it zone.|.2-22.Fi|
|00002b30| 67 75 72 65 20 32 2d 32 | 09 41 20 62 6c 6f 63 6b |gure 2-2|.A block|
|00002b40| 20 68 65 61 64 65 72 20 | 69 6e 20 61 20 33 32 2d | header |in a 32-|
|00002b50| 62 69 74 20 7a 6f 6e 65 | 14 14 32 2d 32 33 0d 4c |bit zone|..2-23.L|
|00002b60| 69 73 74 69 6e 67 20 32 | 2d 31 09 52 65 61 64 69 |isting 2|-1.Readi|
|00002b70| 6e 67 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ng the v|alue of |
|00002b80| 61 20 73 79 73 74 65 6d | 20 67 6c 6f 62 61 6c 20 |a system| global |
|00002b90| 76 61 72 69 61 62 6c 65 | 14 14 32 2d 38 0d 4c 69 |variable|..2-8.Li|
|00002ba0| 73 74 69 6e 67 20 32 2d | 32 09 43 68 61 6e 67 69 |sting 2-|2.Changi|
|00002bb0| 6e 67 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ng the v|alue of |
|00002bc0| 61 20 73 79 73 74 65 6d | 20 67 6c 6f 62 61 6c 20 |a system| global |
|00002bd0| 76 61 72 69 61 62 6c 65 | 14 14 32 2d 39 0d 4c 69 |variable|..2-9.Li|
|00002be0| 73 74 69 6e 67 20 32 2d | 33 09 44 65 74 65 72 6d |sting 2-|3.Determ|
|00002bf0| 69 6e 69 6e 67 20 77 68 | 65 74 68 65 72 20 74 65 |ining wh|ether te|
|00002c00| 6d 70 6f 72 61 72 79 2d | 6d 65 6d 6f 72 79 20 72 |mporary-|memory r|
|00002c10| 6f 75 74 69 6e 65 73 20 | 0d 61 72 65 20 61 76 61 |outines |.are ava|
|00002c20| 69 6c 61 62 6c 65 14 14 | 32 2d 31 32 0d 4c 69 73 |ilable..|2-12.Lis|
|00002c30| 74 69 6e 67 20 32 2d 34 | 09 43 61 6c 6c 69 6e 67 |ting 2-4|.Calling|
|00002c40| 20 61 20 70 72 6f 63 65 | 64 75 72 65 20 62 79 20 | a proce|dure by |
|00002c50| 61 64 64 72 65 73 73 14 | 14 32 2d 31 33 0d 4c 69 |address.|.2-13.Li|
|00002c60| 73 74 69 6e 67 20 32 2d | 35 09 43 72 65 61 74 69 |sting 2-|5.Creati|
|00002c70| 6e 67 20 61 20 73 75 62 | 7a 6f 6e 65 20 6f 66 20 |ng a sub|zone of |
|00002c80| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 61 70 70 |the orig|inal app|
|00002c90| 6c 69 63 61 74 69 6f 6e | 20 68 65 61 70 20 7a 6f |lication| heap zo|
|00002ca0| 6e 65 14 14 32 2d 31 35 | 0d 4c 69 73 74 69 6e 67 |ne..2-15|.Listing|
|00002cb0| 20 32 2d 36 09 41 20 70 | 75 72 67 65 2d 77 61 72 | 2-6.A p|urge-war|
|00002cc0| 6e 69 6e 67 20 70 72 6f | 63 65 64 75 72 65 14 14 |ning pro|cedure..|
|00002cd0| 32 2d 31 37 0d 4c 69 73 | 74 69 6e 67 20 32 2d 37 |2-17.Lis|ting 2-7|
|00002ce0| 09 49 6e 73 74 61 6c 6c | 69 6e 67 20 61 20 70 75 |.Install|ing a pu|
|00002cf0| 72 67 65 2d 77 61 72 6e | 69 6e 67 20 70 72 6f 63 |rge-warn|ing proc|
|00002d00| 65 64 75 72 65 14 14 32 | 2d 31 38 0d 4c 69 73 74 |edure..2|-18.List|
|00002d10| 69 6e 67 20 32 2d 38 09 | 41 20 70 75 72 67 65 2d |ing 2-8.|A purge-|
|00002d20| 77 61 72 6e 69 6e 67 20 | 70 72 6f 63 65 64 75 72 |warning |procedur|
|00002d30| 65 20 74 68 61 74 20 63 | 61 6c 6c 73 20 74 68 65 |e that c|alls the|
|00002d40| 20 52 65 73 6f 75 72 63 | 65 20 4d 61 6e 61 67 65 | Resourc|e Manage|
|00002d50| 72 d5 73 20 70 72 6f 63 | 65 64 75 72 65 14 14 32 |r.s proc|edure..2|
|00002d60| 2d 31 39 0d 43 68 61 70 | 74 65 72 20 33 09 56 69 |-19.Chap|ter 3.Vi|
|00002d70| 72 74 75 61 6c 20 4d 65 | 6d 6f 72 79 20 4d 61 6e |rtual Me|mory Man|
|00002d80| 61 67 65 72 14 14 33 2d | 31 0d 0d 46 69 67 75 72 |ager..3-|1..Figur|
|00002d90| 65 20 33 2d 31 09 32 34 | 2d 62 69 74 20 4d 65 6d |e 3-1.24|-bit Mem|
|00002da0| 6f 72 79 20 4d 61 6e 61 | 67 65 72 20 6c 6f 67 69 |ory Mana|ger logi|
|00002db0| 63 61 6c 20 61 64 64 72 | 65 73 73 20 73 70 61 63 |cal addr|ess spac|
|00002dc0| 65 14 14 33 2d 36 0d 46 | 69 67 75 72 65 20 33 2d |e..3-6.F|igure 3-|
|00002dd0| 32 09 33 32 2d 62 69 74 | 20 4d 65 6d 6f 72 79 20 |2.32-bit| Memory |
|00002de0| 4d 61 6e 61 67 65 72 20 | 6c 6f 67 69 63 61 6c 20 |Manager |logical |
|00002df0| 61 64 64 72 65 73 73 20 | 73 70 61 63 65 14 14 33 |address |space..3|
|00002e00| 2d 38 0d 46 69 67 75 72 | 65 20 33 2d 33 09 54 68 |-8.Figur|e 3-3.Th|
|00002e10| 65 20 70 68 79 73 69 63 | 61 6c 20 61 64 64 72 65 |e physic|al addre|
|00002e20| 73 73 20 73 70 61 63 65 | 20 6f 6e 20 61 20 4d 61 |ss space| on a Ma|
|00002e30| 63 69 6e 74 6f 73 68 20 | 49 49 63 69 20 77 69 74 |cintosh |IIci wit|
|00002e40| 68 20 0d 38 20 4d 42 20 | 6f 66 20 52 41 4d 14 14 |h .8 MB |of RAM..|
|00002e50| 33 2d 31 30 0d 4c 69 73 | 74 69 6e 67 20 33 2d 31 |3-10.Lis|ting 3-1|
|00002e60| 09 54 72 61 6e 73 6c 61 | 74 69 6e 67 20 6c 6f 67 |.Transla|ting log|
|00002e70| 69 63 61 6c 20 74 6f 20 | 70 68 79 73 69 63 61 6c |ical to |physical|
|00002e80| 20 61 64 64 72 65 73 73 | 65 73 14 14 33 2d 31 39 | address|es..3-19|
|00002e90| 0d 43 68 61 70 74 65 72 | 20 34 09 4d 65 6d 6f 72 |.Chapter| 4.Memor|
|00002ea0| 79 20 4d 61 6e 61 67 65 | 6d 65 6e 74 20 55 74 69 |y Manage|ment Uti|
|00002eb0| 6c 69 74 69 65 73 14 14 | 34 2d 31 0d 0d 46 69 67 |lities..|4-1..Fig|
|00002ec0| 75 72 65 20 34 2d 31 09 | 54 68 65 20 4d 65 6d 6f |ure 4-1.|The Memo|
|00002ed0| 72 79 20 63 6f 6e 74 72 | 6f 6c 20 70 61 6e 65 6c |ry contr|ol panel|
|00002ee0| 14 14 34 2d 34 0d 46 69 | 67 75 72 65 20 34 2d 32 |..4-4.Fi|gure 4-2|
|00002ef0| 09 49 6e 69 74 69 61 6c | 69 7a 69 6e 67 20 61 20 |.Initial|izing a |
|00002f00| 73 74 61 74 75 73 20 63 | 6f 64 65 14 14 34 2d 31 |status c|ode..4-1|
|00002f10| 31 0d 46 69 67 75 72 65 | 20 34 2d 33 09 52 65 61 |1.Figure| 4-3.Rea|
|00002f20| 64 69 6e 67 20 73 74 61 | 6c 65 20 64 61 74 61 14 |ding sta|le data.|
|00002f30| 14 34 2d 31 32 0d 46 69 | 67 75 72 65 20 34 2d 34 |.4-12.Fi|gure 4-4|
|00002f40| 09 52 65 61 64 69 6e 67 | 20 69 6e 76 61 6c 69 64 |.Reading| invalid|
|00002f50| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 14 14 34 | instruc|tions..4|
|00002f60| 2d 31 33 0d 54 61 62 6c | 65 20 34 2d 31 09 43 61 |-13.Tabl|e 4-1.Ca|
|00002f70| 63 68 65 73 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |ches ava|ilable i|
|00002f80| 6e 20 4d 43 36 38 30 78 | 30 20 6d 69 63 72 6f 70 |n MC680x|0 microp|
|00002f90| 72 6f 63 65 73 73 6f 72 | 73 14 14 34 2d 39 0d 4c |rocessor|s..4-9.L|
|00002fa0| 69 73 74 69 6e 67 20 34 | 2d 31 09 41 20 73 61 6d |isting 4|-1.A sam|
|00002fb0| 70 6c 65 20 67 72 6f 77 | 2d 7a 6f 6e 65 20 66 75 |ple grow|-zone fu|
|00002fc0| 6e 63 74 69 6f 6e 14 14 | 34 2d 31 35 0d 4c 69 73 |nction..|4-15.Lis|
|00002fd0| 74 69 6e 67 20 34 2d 32 | 09 50 61 73 73 69 6e 67 |ting 4-2|.Passing|
|00002fe0| 20 41 35 20 74 6f 20 61 | 20 6e 6f 74 69 66 69 63 | A5 to a| notific|
|00002ff0| 61 74 69 6f 6e 20 72 65 | 73 70 6f 6e 73 65 20 70 |ation re|sponse p|
|00003000| 72 6f 63 65 64 75 72 65 | 14 14 34 2d 31 36 0d 4c |rocedure|..4-16.L|
|00003010| 69 73 74 69 6e 67 20 34 | 2d 33 09 53 65 74 74 69 |isting 4|-3.Setti|
|00003020| 6e 67 20 75 70 20 61 6e | 64 20 72 65 73 74 6f 72 |ng up an|d restor|
|00003030| 69 6e 67 20 74 68 65 20 | 41 35 20 72 65 67 69 73 |ing the |A5 regis|
|00003040| 74 65 72 20 61 74 20 69 | 6e 74 65 72 72 75 70 74 |ter at i|nterrupt|
|00003050| 20 74 69 6d 65 14 14 34 | 2d 31 37 0d 4c 69 73 74 | time..4|-17.List|
|00003060| 69 6e 67 20 34 2d 34 09 | 53 74 72 75 63 74 75 72 |ing 4-4.|Structur|
|00003070| 65 20 6f 66 20 74 68 65 | 20 51 75 69 63 6b 44 72 |e of the| QuickDr|
|00003080| 61 77 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |aw globa|l variab|
|00003090| 6c 65 73 14 14 34 2d 31 | 38 0d 4c 69 73 74 69 6e |les..4-1|8.Listin|
|000030a0| 67 20 34 2d 35 09 43 6f | 70 79 69 6e 67 20 74 68 |g 4-5.Co|pying th|
|000030b0| 65 20 51 75 69 63 6b 44 | 72 61 77 20 67 6c 6f 62 |e QuickD|raw glob|
|000030c0| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 20 69 6e 74 |al varia|bles int|
|000030d0| 6f 20 61 20 72 65 63 6f | 72 64 14 14 34 2d 31 39 |o a reco|rd..4-19|
|000030e0| 0d 4c 69 73 74 69 6e 67 | 20 34 2d 36 09 41 20 63 |.Listing| 4-6.A c|
|000030f0| 6f 6e 74 72 6f 6c d5 73 | 20 64 72 61 77 20 72 6f |ontrol.s| draw ro|
|00003100| 75 74 69 6e 65 20 75 73 | 69 6e 67 20 74 68 65 20 |utine us|ing the |
|00003110| 63 61 6c 6c 69 6e 67 20 | 61 70 70 6c 69 63 61 74 |calling |applicat|
|00003120| 69 6f 6e d5 73 20 0d 51 | 75 69 63 6b 44 72 61 77 |ion.s .Q|uickDraw|
|00003130| 20 70 61 74 74 65 72 6e | 73 14 14 34 2d 31 39 0d | pattern|s..4-19.|
|00003140| 4c 69 73 74 69 6e 67 20 | 34 2d 37 09 53 74 72 69 |Listing |4-7.Stri|
|00003150| 70 70 69 6e 67 20 74 68 | 65 20 70 72 6f 67 72 61 |pping th|e progra|
|00003160| 6d 20 63 6f 75 6e 74 65 | 72 14 14 34 2d 32 31 0d |m counte|r..4-21.|
|00003170| 4c 69 73 74 69 6e 67 20 | 34 2d 38 09 53 74 72 69 |Listing |4-8.Stri|
|00003180| 70 70 69 6e 67 20 61 64 | 64 72 65 73 73 65 73 20 |pping ad|dresses |
|00003190| 69 6e 20 74 69 6d 65 2d | 63 72 69 74 69 63 61 6c |in time-|critical|
|000031a0| 20 63 6f 64 65 14 14 34 | 2d 32 33 0d 4c 69 73 74 | code..4|-23.List|
|000031b0| 69 6e 67 20 34 2d 39 09 | 43 61 6c 63 75 6c 61 74 |ing 4-9.|Calculat|
|000031c0| 69 6e 67 20 74 68 65 20 | 53 74 72 69 70 41 64 64 |ing the |StripAdd|
|000031d0| 72 65 73 73 20 6d 61 73 | 6b 14 14 34 2d 32 33 0d |ress mas|k..4-23.|
|000031e0| 4c 69 73 74 69 6e 67 20 | 34 2d 31 30 09 54 72 61 |Listing |4-10.Tra|
|000031f0| 6e 73 6c 61 74 69 6e 67 | 20 32 34 2d 62 69 74 20 |nslating| 24-bit |
|00003200| 74 6f 20 33 32 2d 62 69 | 74 20 61 64 64 72 65 73 |to 32-bi|t addres|
|00003210| 73 65 73 14 14 34 2d 32 | 34 0d 41 62 6f 75 74 20 |ses..4-2|4.About |
|00003220| 54 68 69 73 20 42 6f 6f | 6b 0d 0d 0d 54 68 69 73 |This Boo|k...This|
|00003230| 20 62 6f 6f 6b 2c 20 49 | 6e 73 69 64 65 20 4d 61 | book, I|nside Ma|
|00003240| 63 69 6e 74 6f 73 68 3a | 20 4d 65 6d 6f 72 79 2c |cintosh:| Memory,|
|00003250| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 70 | describ|es the p|
|00003260| 61 72 74 73 20 6f 66 20 | 74 68 65 20 4d 61 63 69 |arts of |the Maci|
|00003270| 6e 74 6f 73 68 20 4f 70 | 65 72 61 74 69 6e 67 20 |ntosh Op|erating |
|00003280| 53 79 73 74 65 6d 20 74 | 68 61 74 20 61 6c 6c 6f |System t|hat allo|
|00003290| 77 20 79 6f 75 20 74 6f | 20 61 6c 6c 6f 63 61 74 |w you to| allocat|
|000032a0| 65 20 6d 65 6d 6f 72 79 | 20 64 69 72 65 63 74 6c |e memory| directl|
|000032b0| 79 2c 20 72 65 6c 65 61 | 73 65 20 69 74 2c 20 6f |y, relea|se it, o|
|000032c0| 72 20 6f 74 68 65 72 77 | 69 73 65 20 6d 61 6e 69 |r otherw|ise mani|
|000032d0| 70 75 6c 61 74 65 20 69 | 74 2e 20 54 68 65 20 62 |pulate i|t. The b|
|000032e0| 6f 6f 6b 20 69 6e 63 6c | 75 64 65 73 20 69 6e 74 |ook incl|udes int|
|000032f0| 72 6f 64 75 63 74 6f 72 | 79 20 6d 61 74 65 72 69 |roductor|y materi|
|00003300| 61 6c 20 61 62 6f 75 74 | 20 6d 61 6e 61 67 69 6e |al about| managin|
|00003310| 67 20 6d 65 6d 6f 72 79 | 20 6f 6e 20 4d 61 63 69 |g memory| on Maci|
|00003320| 6e 74 6f 73 68 20 63 6f | 6d 70 75 74 65 72 73 20 |ntosh co|mputers |
|00003330| 61 73 20 77 65 6c 6c 20 | 61 73 20 61 20 63 6f 6d |as well |as a com|
|00003340| 70 6c 65 74 65 20 74 65 | 63 68 6e 69 63 61 6c 20 |plete te|chnical |
|00003350| 72 65 66 65 72 65 6e 63 | 65 20 74 6f 20 74 68 65 |referenc|e to the|
|00003360| 20 4d 65 6d 6f 72 79 20 | 4d 61 6e 61 67 65 72 2c | Memory |Manager,|
|00003370| 20 74 68 65 20 56 69 72 | 74 75 61 6c 20 4d 65 6d | the Vir|tual Mem|
|00003380| 6f 72 79 20 4d 61 6e 61 | 67 65 72 2c 20 61 6e 64 |ory Mana|ger, and|
|00003390| 20 6f 74 68 65 72 20 6d | 65 6d 6f 72 79 2d 72 65 | other m|emory-re|
|000033a0| 6c 61 74 65 64 20 73 65 | 72 76 69 63 65 73 20 70 |lated se|rvices p|
|000033b0| 72 6f 76 69 64 65 64 20 | 62 79 20 74 68 65 20 73 |rovided |by the s|
|000033c0| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 2e 0d |ystem so|ftware..|
|000033d0| 49 66 20 79 6f 75 20 61 | 72 65 20 6e 65 77 20 74 |If you a|re new t|
|000033e0| 6f 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 6f 6e |o progra|mming on|
|000033f0| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 4f | the Mac|intosh O|
|00003400| 70 65 72 61 74 69 6e 67 | 20 53 79 73 74 65 6d 2c |perating| System,|
|00003410| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 62 65 67 69 | you sho|uld begi|
|00003420| 6e 20 77 69 74 68 20 74 | 68 65 20 63 68 61 70 74 |n with t|he chapt|
|00003430| 65 72 20 d2 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |er .Intr|oduction|
|00003440| 20 74 6f 20 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 | to Memo|ry Manag|
|00003450| 65 6d 65 6e 74 2e d3 20 | 54 68 69 73 20 63 68 61 |ement.. |This cha|
|00003460| 70 74 65 72 20 70 72 6f | 76 69 64 65 73 20 61 20 |pter pro|vides a |
|00003470| 67 65 6e 65 72 61 6c 20 | 69 6e 74 72 6f 64 75 63 |general |introduc|
|00003480| 74 69 6f 6e 20 74 6f 20 | 6d 65 6d 6f 72 79 20 6d |tion to |memory m|
|00003490| 61 6e 61 67 65 6d 65 6e | 74 20 6f 6e 20 4d 61 63 |anagemen|t on Mac|
|000034a0| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|000034b0| 2e 20 49 74 20 64 65 73 | 63 72 69 62 65 73 20 68 |. It des|cribes h|
|000034c0| 6f 77 20 74 68 65 20 4f | 70 65 72 61 74 69 6e 67 |ow the O|perating|
|000034d0| 20 53 79 73 74 65 6d 20 | 6f 72 67 61 6e 69 7a 65 | System |organize|
|000034e0| 73 20 61 6e 64 20 6d 61 | 6e 61 67 65 73 20 74 68 |s and ma|nages th|
|000034f0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 6d 65 6d 6f |e availa|ble memo|
|00003500| 72 79 2c 20 61 6e 64 20 | 69 74 20 73 68 6f 77 73 |ry, and |it shows|
|00003510| 20 68 6f 77 20 79 6f 75 | 20 63 61 6e 20 75 73 65 | how you| can use|
|00003520| 20 74 68 65 20 73 65 72 | 76 69 63 65 73 20 70 72 | the ser|vices pr|
|00003530| 6f 76 69 64 65 64 20 62 | 79 20 74 68 65 20 4d 65 |ovided b|y the Me|
|00003540| 6d 6f 72 79 20 4d 61 6e | 61 67 65 72 20 61 6e 64 |mory Man|ager and|
|00003550| 20 6f 74 68 65 72 20 73 | 79 73 74 65 6d 20 73 6f | other s|ystem so|
|00003560| 66 74 77 61 72 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ftware c|omponent|
|00003570| 73 20 74 6f 20 6d 61 6e | 61 67 65 20 74 68 65 20 |s to man|age the |
|00003580| 6d 65 6d 6f 72 79 20 69 | 6e 20 79 6f 75 72 20 61 |memory i|n your a|
|00003590| 70 70 6c 69 63 61 74 69 | 6f 6e 20 70 61 72 74 69 |pplicati|on parti|
|000035a0| 74 69 6f 6e 20 65 66 66 | 65 63 74 69 76 65 6c 79 |tion eff|ectively|
|000035b0| 2e 20 42 65 63 61 75 73 | 65 20 74 68 69 73 20 63 |. Becaus|e this c|
|000035c0| 68 61 70 74 65 72 20 69 | 73 20 64 65 73 69 67 6e |hapter i|s design|
|000035d0| 65 64 20 74 6f 20 62 65 | 20 6c 61 72 67 65 6c 79 |ed to be| largely|
|000035e0| 20 73 65 6c 66 2d 63 6f | 6e 74 61 69 6e 65 64 2c | self-co|ntained,|
|000035f0| 20 74 68 65 20 72 65 66 | 65 72 65 6e 63 65 20 61 | the ref|erence a|
|00003600| 6e 64 20 73 75 6d 6d 61 | 72 79 20 73 65 63 74 69 |nd summa|ry secti|
|00003610| 6f 6e 73 20 69 6e 20 74 | 68 69 73 20 63 68 61 70 |ons in t|his chap|
|00003620| 74 65 72 20 61 72 65 20 | 73 75 62 73 65 74 73 20 |ter are |subsets |
|00003630| 6f 66 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |of the c|orrespon|
|00003640| 64 69 6e 67 20 73 65 63 | 74 69 6f 6e 73 20 66 72 |ding sec|tions fr|
|00003650| 6f 6d 20 74 68 65 20 6f | 74 68 65 72 20 63 68 61 |om the o|ther cha|
|00003660| 70 74 65 72 73 20 69 6e | 20 74 68 69 73 20 62 6f |pters in| this bo|
|00003670| 6f 6b 2e 0d 4f 6e 63 65 | 20 79 6f 75 20 61 72 65 |ok..Once| you are|
|00003680| 20 66 61 6d 69 6c 69 61 | 72 20 77 69 74 68 20 62 | familia|r with b|
|00003690| 61 73 69 63 20 6d 65 6d | 6f 72 79 20 6d 61 6e 61 |asic mem|ory mana|
|000036a0| 67 65 6d 65 6e 74 20 6f | 6e 20 4d 61 63 69 6e 74 |gement o|n Macint|
|000036b0| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 73 2c 20 79 |osh comp|uters, y|
|000036c0| 6f 75 20 73 68 6f 75 6c | 64 20 6c 6f 6f 6b 20 61 |ou shoul|d look a|
|000036d0| 74 20 74 68 65 20 63 68 | 61 70 74 65 72 20 d2 4d |t the ch|apter .M|
|000036e0| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 72 2e d3 20 |emory Ma|nager.. |
|000036f0| 49 74 20 64 65 73 63 72 | 69 62 65 73 20 68 6f 77 |It descr|ibes how|
|00003700| 20 74 6f 20 61 6c 6c 6f | 63 61 74 65 20 6d 65 6d | to allo|cate mem|
|00003710| 6f 72 79 20 6f 75 74 73 | 69 64 65 20 79 6f 75 72 |ory outs|ide your|
|00003720| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 70 61 72 | applica|tion par|
|00003730| 74 69 74 69 6f 6e 20 61 | 6e 64 20 68 6f 77 20 74 |tition a|nd how t|
|00003740| 6f 20 70 65 72 66 6f 72 | 6d 20 6d 6f 72 65 20 61 |o perfor|m more a|
|00003750| 64 76 61 6e 63 65 64 20 | 6d 65 6d 6f 72 79 20 6f |dvanced |memory o|
|00003760| 70 65 72 61 74 69 6f 6e | 73 20 74 68 61 6e 20 61 |peration|s than a|
|00003770| 72 65 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |re descr|ibed in |
|00003780| 74 68 65 20 69 6e 74 72 | 6f 64 75 63 74 6f 72 79 |the intr|oductory|
|00003790| 20 63 68 61 70 74 65 72 | 2e 0d 54 68 65 20 63 68 | chapter|..The ch|
|000037a0| 61 70 74 65 72 20 d2 56 | 69 72 74 75 61 6c 20 4d |apter .V|irtual M|
|000037b0| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 72 d3 20 64 |emory Ma|nager. d|
|000037c0| 65 73 63 72 69 62 65 73 | 20 74 68 65 20 6f 70 65 |escribes| the ope|
|000037d0| 72 61 74 69 6f 6e 20 6f | 66 20 76 69 72 74 75 61 |ration o|f virtua|
|000037e0| 6c 20 6d 65 6d 6f 72 79 | 20 61 6e 64 20 64 65 73 |l memory| and des|
|000037f0| 63 72 69 62 65 73 20 74 | 68 65 20 72 6f 75 74 69 |cribes t|he routi|
|00003800| 6e 65 73 20 74 68 61 74 | 20 79 6f 75 20 63 61 6e |nes that| you can|
|00003810| 20 75 73 65 20 74 6f 20 | 69 6e 74 65 72 76 65 6e | use to |interven|
|00003820| 65 20 69 6e 20 74 68 65 | 20 6f 74 68 65 72 77 69 |e in the| otherwi|
|00003830| 73 65 20 61 75 74 6f 6d | 61 74 69 63 20 6f 70 65 |se autom|atic ope|
|00003840| 72 61 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 56 |rations |of the V|
|00003850| 69 72 74 75 61 6c 20 4d | 65 6d 6f 72 79 20 4d 61 |irtual M|emory Ma|
|00003860| 6e 61 67 65 72 2e 20 4d | 6f 73 74 20 61 70 70 6c |nager. M|ost appl|
|00003870| 69 63 61 74 69 6f 6e 73 | 20 61 72 65 20 6e 6f 74 |ications| are not|
|00003880| 20 61 66 66 65 63 74 65 | 64 20 62 79 20 74 68 65 | affecte|d by the|
|00003890| 20 6f 70 65 72 61 74 69 | 6f 6e 20 6f 66 20 76 69 | operati|on of vi|
|000038a0| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 61 6e 64 |rtual me|mory and|
|000038b0| 20 64 6f 20 6e 6f 74 20 | 6e 65 65 64 20 74 6f 20 | do not |need to |
|000038c0| 75 73 65 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |use the |routines|
|000038d0| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 74 68 65 | provide|d by the|
|000038e0| 20 56 69 72 74 75 61 6c | 20 4d 65 6d 6f 72 79 20 | Virtual| Memory |
|000038f0| 4d 61 6e 61 67 65 72 2e | 20 49 66 20 79 6f 75 72 |Manager.| If your|
|00003900| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 73 65 6e | applica|tion sen|
|00003910| 64 73 20 6d 65 6d 6f 72 | 79 20 61 64 64 72 65 73 |ds memor|y addres|
|00003920| 73 65 73 20 74 6f 20 73 | 6f 6d 65 20 4e 75 42 75 |ses to s|ome NuBu|
|00003930| 73 aa 20 6d 61 73 74 65 | 72 20 68 61 72 64 77 61 |s. maste|r hardwa|
|00003940| 72 65 2c 20 68 6f 77 65 | 76 65 72 2c 20 79 6f 75 |re, howe|ver, you|
|00003950| 20 73 68 6f 75 6c 64 20 | 72 65 61 64 20 74 68 65 | should |read the|
|00003960| 20 64 69 73 63 75 73 73 | 69 6f 6e 20 6f 66 20 6d | discuss|ion of m|
|00003970| 61 70 70 69 6e 67 20 76 | 69 72 74 75 61 6c 20 74 |apping v|irtual t|
|00003980| 6f 20 70 68 79 73 69 63 | 61 6c 20 61 64 64 72 65 |o physic|al addre|
|00003990| 73 73 65 73 20 69 6e 20 | 74 68 61 74 20 63 68 61 |sses in |that cha|
|000039a0| 70 74 65 72 2e 0d 54 68 | 65 20 66 69 6e 61 6c 20 |pter..Th|e final |
|000039b0| 63 68 61 70 74 65 72 20 | 69 6e 20 74 68 69 73 20 |chapter |in this |
|000039c0| 62 6f 6f 6b 2c 20 d2 4d | 65 6d 6f 72 79 20 4d 61 |book, .M|emory Ma|
|000039d0| 6e 61 67 65 6d 65 6e 74 | 20 55 74 69 6c 69 74 69 |nagement| Utiliti|
|000039e0| 65 73 2c d3 20 64 65 73 | 63 72 69 62 65 73 20 61 |es,. des|cribes a|
|000039f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 75 74 69 6c 69 | number |of utili|
|00003a00| 74 79 20 72 6f 75 74 69 | 6e 65 73 20 70 72 6f 76 |ty routi|nes prov|
|00003a10| 69 64 65 64 20 62 79 20 | 74 68 65 20 73 79 73 74 |ided by |the syst|
|00003a20| 65 6d 20 73 6f 66 74 77 | 61 72 65 2e 20 59 6f 75 |em softw|are. You|
|00003a30| 20 6e 65 65 64 20 74 6f | 20 72 65 61 64 20 74 68 | need to| read th|
|00003a40| 69 73 20 63 68 61 70 74 | 65 72 20 70 72 69 6d 61 |is chapt|er prima|
|00003a50| 72 69 6c 79 20 69 66 20 | 79 6f 75 20 69 6e 73 74 |rily if |you inst|
|00003a60| 61 6c 6c 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |all rout|ines tha|
|00003a70| 74 20 61 72 65 20 65 78 | 65 63 75 74 65 64 20 62 |t are ex|ecuted b|
|00003a80| 79 20 73 79 73 74 65 6d | 20 73 6f 66 74 77 61 72 |y system| softwar|
|00003a90| 65 20 72 6f 75 74 69 6e | 65 73 20 6f 72 20 69 6e |e routin|es or in|
|00003aa0| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 61 6e 20 | respons|e to an |
|00003ab0| 69 6e 74 65 72 72 75 70 | 74 2c 20 6f 72 20 69 66 |interrup|t, or if|
|00003ac0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 63 68 61 | you nee|d to cha|
|00003ad0| 6e 67 65 20 0d 74 68 65 | 20 61 64 64 72 65 73 73 |nge .the| address|
|00003ae0| 69 6e 67 20 6d 6f 64 65 | 2e 20 59 6f 75 20 61 6c |ing mode|. You al|
|00003af0| 73 6f 20 6e 65 65 64 20 | 74 6f 20 72 65 61 64 20 |so need |to read |
|00003b00| 74 68 69 73 20 63 68 61 | 70 74 65 72 20 69 66 20 |this cha|pter if |
|00003b10| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00003b20| 20 6d 69 67 68 74 20 62 | 65 20 61 66 66 65 63 74 | might b|e affect|
|00003b30| 65 64 20 62 79 20 74 68 | 65 20 6e 6f 72 6d 61 6c |ed by th|e normal|
|00003b40| 20 6f 70 65 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 | operati|on of th|
|00003b50| 65 20 70 72 6f 63 65 73 | 73 6f 72 d5 73 20 69 6e |e proces|sor.s in|
|00003b60| 73 74 72 75 63 74 69 6f | 6e 20 6f 72 20 64 61 74 |structio|n or dat|
|00003b70| 61 20 63 61 63 68 65 73 | 2e 0d 0d 0d 46 6f 72 6d |a caches|....Form|
|00003b80| 61 74 20 6f 66 20 61 20 | 54 79 70 69 63 61 6c 20 |at of a |Typical |
|00003b90| 43 68 61 70 74 65 72 0d | 0d 41 6c 6d 6f 73 74 20 |Chapter.|.Almost |
|00003ba0| 61 6c 6c 20 63 68 61 70 | 74 65 72 73 20 69 6e 20 |all chap|ters in |
|00003bb0| 74 68 69 73 20 62 6f 6f | 6b 20 66 6f 6c 6c 6f 77 |this boo|k follow|
|00003bc0| 20 61 20 73 74 61 6e 64 | 61 72 64 20 73 74 72 75 | a stand|ard stru|
|00003bd0| 63 74 75 72 65 2e 20 46 | 6f 72 20 65 78 61 6d 70 |cture. F|or examp|
|00003be0| 6c 65 2c 20 74 68 65 20 | 4d 65 6d 6f 72 79 20 4d |le, the |Memory M|
|00003bf0| 61 6e 61 67 65 72 20 63 | 68 61 70 74 65 72 20 63 |anager c|hapter c|
|00003c00| 6f 6e 74 61 69 6e 73 20 | 74 68 65 73 65 20 73 65 |ontains |these se|
|00003c10| 63 74 69 6f 6e 73 3a 0d | 6e 09 d2 41 62 6f 75 74 |ctions:.|n..About|
|00003c20| 20 74 68 65 20 4d 65 6d | 6f 72 79 20 4d 61 6e 61 | the Mem|ory Mana|
|00003c30| 67 65 72 2e d3 20 54 68 | 69 73 20 73 65 63 74 69 |ger.. Th|is secti|
|00003c40| 6f 6e 20 70 72 6f 76 69 | 64 65 73 20 61 6e 20 6f |on provi|des an o|
|00003c50| 76 65 72 76 69 65 77 20 | 6f 66 20 74 68 65 20 66 |verview |of the f|
|00003c60| 65 61 74 75 72 65 73 20 | 70 72 6f 76 69 64 65 64 |eatures |provided|
|00003c70| 20 62 79 20 74 68 65 20 | 4d 65 6d 6f 72 79 20 4d | by the |Memory M|
|00003c80| 61 6e 61 67 65 72 2e 0d | 6e 09 d2 55 73 69 6e 67 |anager..|n..Using|
|00003c90| 20 74 68 65 20 4d 65 6d | 6f 72 79 20 4d 61 6e 61 | the Mem|ory Mana|
|00003ca0| 67 65 72 2e d3 20 54 68 | 69 73 20 73 65 63 74 69 |ger.. Th|is secti|
|00003cb0| 6f 6e 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |on descr|ibes the|
|00003cc0| 20 74 61 73 6b 73 20 79 | 6f 75 20 63 61 6e 20 61 | tasks y|ou can a|
|00003cd0| 63 63 6f 6d 70 6c 69 73 | 68 20 75 73 69 6e 67 20 |ccomplis|h using |
|00003ce0| 74 68 65 20 4d 65 6d 6f | 72 79 20 4d 61 6e 61 67 |the Memo|ry Manag|
|00003cf0| 65 72 2e 20 49 74 20 64 | 65 73 63 72 69 62 65 73 |er. It d|escribes|
|00003d00| 20 68 6f 77 20 74 6f 20 | 75 73 65 20 74 68 65 20 | how to |use the |
|00003d10| 6d 6f 73 74 20 63 6f 6d | 6d 6f 6e 20 72 6f 75 74 |most com|mon rout|
|00003d20| 69 6e 65 73 2c 20 67 69 | 76 65 73 20 72 65 6c 61 |ines, gi|ves rela|
|00003d30| 74 65 64 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 |ted user| interfa|
|00003d40| 63 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |ce infor|mation, |
|00003d50| 70 72 6f 76 69 64 65 73 | 20 63 6f 64 65 20 73 61 |provides| code sa|
|00003d60| 6d 70 6c 65 73 2c 20 61 | 6e 64 20 73 75 70 70 6c |mples, a|nd suppl|
|00003d70| 69 65 73 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 69 |ies addi|tional i|
|00003d80| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 6e 09 d2 4d |nformati|on..n..M|
|00003d90| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 72 20 52 65 |emory Ma|nager Re|
|00003da0| 66 65 72 65 6e 63 65 2e | d3 20 54 68 69 73 20 73 |ference.|. This s|
|00003db0| 65 63 74 69 6f 6e 20 70 | 72 6f 76 69 64 65 73 20 |ection p|rovides |
|00003dc0| 61 20 63 6f 6d 70 6c 65 | 74 65 20 72 65 66 65 72 |a comple|te refer|
|00003dd0| 65 6e 63 65 20 74 6f 20 | 74 68 65 20 4d 65 6d 6f |ence to |the Memo|
|00003de0| 72 79 20 4d 61 6e 61 67 | 65 72 20 62 79 20 64 65 |ry Manag|er by de|
|00003df0| 73 63 72 69 62 69 6e 67 | 20 74 68 65 20 64 61 74 |scribing| the dat|
|00003e00| 61 20 73 74 72 75 63 74 | 75 72 65 73 2c 20 72 6f |a struct|ures, ro|
|00003e10| 75 74 69 6e 65 73 2c 20 | 61 6e 64 20 72 65 73 6f |utines, |and reso|
|00003e20| 75 72 63 65 73 20 74 68 | 61 74 20 69 74 20 75 73 |urces th|at it us|
|00003e30| 65 73 2e 20 45 61 63 68 | 20 72 6f 75 74 69 6e 65 |es. Each| routine|
|00003e40| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 61 6c 73 | descrip|tion als|
|00003e50| 6f 20 66 6f 6c 6c 6f 77 | 73 20 61 20 73 74 61 6e |o follow|s a stan|
|00003e60| 64 61 72 64 20 66 6f 72 | 6d 61 74 2c 20 77 68 69 |dard for|mat, whi|
|00003e70| 63 68 20 67 69 76 65 73 | 20 74 68 65 20 72 6f 75 |ch gives| the rou|
|00003e80| 74 69 6e 65 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |tine dec|laration|
|00003e90| 20 61 6e 64 20 64 65 73 | 63 72 69 70 74 69 6f 6e | and des|cription|
|00003ea0| 20 6f 66 20 65 76 65 72 | 79 20 70 61 72 61 6d 65 | of ever|y parame|
|00003eb0| 74 65 72 20 6f 66 20 74 | 68 65 20 72 6f 75 74 69 |ter of t|he routi|
|00003ec0| 6e 65 2e 20 53 6f 6d 65 | 20 72 6f 75 74 69 6e 65 |ne. Some| routine|
|00003ed0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 20 61 6c | descrip|tions al|
|00003ee0| 73 6f 20 67 69 76 65 20 | 61 64 64 69 74 69 6f 6e |so give |addition|
|00003ef0| 61 6c 20 64 65 73 63 72 | 69 70 74 69 76 65 20 69 |al descr|iptive i|
|00003f00| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 73 75 63 68 |nformati|on, such|
|00003f10| 20 61 73 20 61 73 73 65 | 6d 62 6c 79 2d 6c 61 6e | as asse|mbly-lan|
|00003f20| 67 75 61 67 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |guage in|formatio|
|00003f30| 6e 20 6f 72 20 0d 72 65 | 73 75 6c 74 20 63 6f 64 |n or .re|sult cod|
|00003f40| 65 73 2e 0d 6e 09 d2 53 | 75 6d 6d 61 72 79 20 6f |es..n..S|ummary o|
|00003f50| 66 20 74 68 65 20 4d 65 | 6d 6f 72 79 20 4d 61 6e |f the Me|mory Man|
|00003f60| 61 67 65 72 2e d3 20 54 | 68 69 73 20 73 65 63 74 |ager.. T|his sect|
|00003f70| 69 6f 6e 20 70 72 6f 76 | 69 64 65 73 20 74 68 65 |ion prov|ides the|
|00003f80| 20 4d 65 6d 6f 72 79 20 | 4d 61 6e 61 67 65 72 d5 | Memory |Manager.|
|00003f90| 73 20 50 61 73 63 61 6c | 20 69 6e 74 65 72 66 61 |s Pascal| interfa|
|00003fa0| 63 65 2c 20 61 73 20 77 | 65 6c 6c 20 61 73 20 74 |ce, as w|ell as t|
|00003fb0| 68 65 20 43 20 69 6e 74 | 65 72 66 61 63 65 2c 20 |he C int|erface, |
|00003fc0| 66 6f 72 20 74 68 65 20 | 63 6f 6e 73 74 61 6e 74 |for the |constant|
|00003fd0| 73 2c 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |s, data |structur|
|00003fe0| 65 73 2c 20 72 6f 75 74 | 69 6e 65 73 2c 20 61 6e |es, rout|ines, an|
|00003ff0| 64 20 72 65 73 75 6c 74 | 20 63 6f 64 65 73 20 61 |d result| codes a|
|00004000| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 74 |ssociate|d with t|
|00004010| 68 65 20 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |he Memor|y Manage|
|00004020| 72 2e 20 49 74 20 61 6c | 73 6f 20 69 6e 63 6c 75 |r. It al|so inclu|
|00004030| 64 65 73 20 72 65 6c 65 | 76 61 6e 74 20 61 73 73 |des rele|vant ass|
|00004040| 65 6d 62 6c 79 2d 6c 61 | 6e 67 75 61 67 65 20 69 |embly-la|nguage i|
|00004050| 6e 74 65 72 66 61 63 65 | 20 69 6e 66 6f 72 6d 61 |nterface| informa|
|00004060| 74 69 6f 6e 2e 0d 53 6f | 6d 65 20 63 68 61 70 74 |tion..So|me chapt|
|00004070| 65 72 73 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e |ers also| contain|
|00004080| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 6d 61 69 6e | additio|nal main|
|00004090| 20 73 65 63 74 69 6f 6e | 73 20 74 68 61 74 20 70 | section|s that p|
|000040a0| 72 6f 76 69 64 65 20 6d | 6f 72 65 20 64 65 74 61 |rovide m|ore deta|
|000040b0| 69 6c 65 64 20 64 69 73 | 63 75 73 73 69 6f 6e 73 |iled dis|cussions|
|000040c0| 20 6f 66 20 63 65 72 74 | 61 69 6e 20 74 6f 70 69 | of cert|ain topi|
|000040d0| 63 73 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |cs. For |example,|
|000040e0| 20 74 68 65 20 4d 65 6d | 6f 72 79 20 4d 61 6e 61 | the Mem|ory Mana|
|000040f0| 67 65 72 20 63 68 61 70 | 74 65 72 20 63 6f 6e 74 |ger chap|ter cont|
|00004100| 61 69 6e 73 20 74 68 65 | 20 73 65 63 74 69 6f 6e |ains the| section|
|00004110| 20 d2 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 20 6f | .Organi|zation o|
|00004120| 66 20 4d 65 6d 6f 72 79 | d3 20 74 68 61 74 20 64 |f Memory|. that d|
|00004130| 65 73 63 72 69 62 65 73 | 20 68 6f 77 20 74 68 65 |escribes| how the|
|00004140| 20 4d 65 6d 6f 72 79 20 | 4d 61 6e 61 67 65 72 20 | Memory |Manager |
|00004150| 6f 72 67 61 6e 69 7a 65 | 73 20 7a 6f 6e 65 73 20 |organize|s zones |
|00004160| 61 6e 64 20 62 6c 6f 63 | 6b 73 20 69 6e 20 52 41 |and bloc|ks in RA|
|00004170| 4d 2e 0d 0d 43 6f 6e 76 | 65 6e 74 69 6f 6e 73 20 |M...Conv|entions |
|00004180| 55 73 65 64 20 69 6e 20 | 54 68 69 73 20 42 6f 6f |Used in |This Boo|
|00004190| 6b 0d 0d 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |k..Insid|e Macint|
|000041a0| 6f 73 68 20 75 73 65 73 | 20 76 61 72 69 6f 75 73 |osh uses| various|
|000041b0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 20 74 6f 20 | convent|ions to |
|000041c0| 70 72 65 73 65 6e 74 20 | 69 6e 66 6f 72 6d 61 74 |present |informat|
|000041d0| 69 6f 6e 2e 20 57 6f 72 | 64 73 20 74 68 61 74 20 |ion. Wor|ds that |
|000041e0| 72 65 71 75 69 72 65 20 | 73 70 65 63 69 61 6c 20 |require |special |
|000041f0| 74 72 65 61 74 6d 65 6e | 74 20 61 70 70 65 61 72 |treatmen|t appear|
|00004200| 20 69 6e 20 73 70 65 63 | 69 66 69 63 20 66 6f 6e | in spec|ific fon|
|00004210| 74 73 20 6f 72 20 66 6f | 6e 74 20 73 74 79 6c 65 |ts or fo|nt style|
|00004220| 73 2e 20 43 65 72 74 61 | 69 6e 20 69 6e 66 6f 72 |s. Certa|in infor|
|00004230| 6d 61 74 69 6f 6e 2c 20 | 73 75 63 68 20 61 73 20 |mation, |such as |
|00004240| 70 61 72 61 6d 65 74 65 | 72 20 62 6c 6f 63 6b 73 |paramete|r blocks|
|00004250| 2c 20 75 73 65 20 73 70 | 65 63 69 61 6c 20 66 6f |, use sp|ecial fo|
|00004260| 72 6d 61 74 73 20 73 6f | 20 74 68 61 74 20 79 6f |rmats so| that yo|
|00004270| 75 20 63 61 6e 20 73 63 | 61 6e 20 74 68 65 6d 20 |u can sc|an them |
|00004280| 71 75 69 63 6b 6c 79 2e | 0d 53 70 65 63 69 61 6c |quickly.|.Special|
|00004290| 20 46 6f 6e 74 73 0d 0d | 41 6c 6c 20 63 6f 64 65 | Fonts..|All code|
|000042a0| 20 6c 69 73 74 69 6e 67 | 73 2c 20 20 72 65 73 65 | listing|s, rese|
|000042b0| 72 76 65 64 20 77 6f 72 | 64 73 2c 20 61 6e 64 20 |rved wor|ds, and |
|000042c0| 74 68 65 20 6e 61 6d 65 | 73 20 6f 66 20 61 63 74 |the name|s of act|
|000042d0| 75 61 6c 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |ual data| structu|
|000042e0| 72 65 73 2c 20 63 6f 6e | 73 74 61 6e 74 73 2c 20 |res, con|stants, |
|000042f0| 66 69 65 6c 64 73 2c 20 | 70 61 72 61 6d 65 74 65 |fields, |paramete|
|00004300| 72 73 2c 20 61 6e 64 20 | 72 6f 75 74 69 6e 65 73 |rs, and |routines|
|00004310| 20 61 72 65 20 73 68 6f | 77 6e 20 69 6e 20 43 6f | are sho|wn in Co|
|00004320| 75 72 69 65 72 20 28 74 | 68 69 73 20 0d 69 73 20 |urier (t|his .is |
|00004330| 43 6f 75 72 69 65 72 29 | 2e 0d 57 6f 72 64 73 20 |Courier)|..Words |
|00004340| 74 68 61 74 20 61 70 70 | 65 61 72 20 69 6e 20 62 |that app|ear in b|
|00004350| 6f 6c 64 66 61 63 65 20 | 61 72 65 20 6b 65 79 20 |oldface |are key |
|00004360| 74 65 72 6d 73 20 6f 72 | 20 63 6f 6e 63 65 70 74 |terms or| concept|
|00004370| 73 20 61 6e 64 20 61 72 | 65 20 64 65 66 69 6e 65 |s and ar|e define|
|00004380| 64 20 69 6e 20 74 68 65 | 20 47 6c 6f 73 73 61 72 |d in the| Glossar|
|00004390| 79 2e 0d 54 79 70 65 73 | 20 6f 66 20 4e 6f 74 65 |y..Types| of Note|
|000043a0| 73 0d 0d 54 68 65 72 65 | 20 61 72 65 20 73 65 76 |s..There| are sev|
|000043b0| 65 72 61 6c 20 74 79 70 | 65 73 20 6f 66 20 6e 6f |eral typ|es of no|
|000043c0| 74 65 73 20 75 73 65 64 | 20 69 6e 20 74 68 69 73 |tes used| in this|
|000043d0| 20 62 6f 6f 6b 2e 0d 4e | 6f 74 65 0d 41 20 6e 6f | book..N|ote.A no|
|000043e0| 74 65 20 6c 69 6b 65 20 | 74 68 69 73 20 63 6f 6e |te like |this con|
|000043f0| 74 61 69 6e 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |tains in|formatio|
|00004400| 6e 20 74 68 61 74 20 69 | 73 20 69 6e 74 65 72 65 |n that i|s intere|
|00004410| 73 74 69 6e 67 20 62 75 | 74 20 70 6f 73 73 69 62 |sting bu|t possib|
|00004420| 6c 79 20 6e 6f 74 20 65 | 73 73 65 6e 74 69 61 6c |ly not e|ssential|
|00004430| 20 74 6f 20 61 6e 20 75 | 6e 64 65 72 73 74 61 6e | to an u|nderstan|
|00004440| 64 69 6e 67 20 6f 66 20 | 74 68 65 20 6d 61 69 6e |ding of |the main|
|00004450| 20 74 65 78 74 2e 20 28 | 41 6e 20 65 78 61 6d 70 | text. (|An examp|
|00004460| 6c 65 20 61 70 70 65 61 | 72 73 20 6f 6e 20 70 61 |le appea|rs on pa|
|00004470| 67 65 20 31 2d 38 2e 29 | 13 75 0d 49 4d 50 4f 52 |ge 1-8.)|.u.IMPOR|
|00004480| 54 41 4e 54 0d 41 20 6e | 6f 74 65 20 6c 69 6b 65 |TANT.A n|ote like|
|00004490| 20 74 68 69 73 20 63 6f | 6e 74 61 69 6e 73 20 69 | this co|ntains i|
|000044a0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 68 61 74 20 |nformati|on that |
|000044b0| 69 73 20 65 73 73 65 6e | 74 69 61 6c 20 66 6f 72 |is essen|tial for|
|000044c0| 20 61 6e 20 75 6e 64 65 | 72 73 74 61 6e 64 69 6e | an unde|rstandin|
|000044d0| 67 20 6f 66 20 74 68 65 | 20 6d 61 69 6e 20 74 65 |g of the| main te|
|000044e0| 78 74 2e 20 28 41 6e 20 | 65 78 61 6d 70 6c 65 20 |xt. (An |example |
|000044f0| 61 70 70 65 61 72 73 20 | 6f 6e 20 70 61 67 65 20 |appears |on page |
|00004500| 32 2d 37 2e 29 13 73 0d | 73 57 41 52 4e 49 4e 47 |2-7.).s.|sWARNING|
|00004510| 0d 57 61 72 6e 69 6e 67 | 73 20 6c 69 6b 65 20 74 |.Warning|s like t|
|00004520| 68 69 73 20 69 6e 64 69 | 63 61 74 65 20 70 6f 74 |his indi|cate pot|
|00004530| 65 6e 74 69 61 6c 20 70 | 72 6f 62 6c 65 6d 73 20 |ential p|roblems |
|00004540| 74 68 61 74 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |that you| should |
|00004550| 62 65 20 61 77 61 72 65 | 20 6f 66 20 61 73 20 79 |be aware| of as y|
|00004560| 6f 75 20 64 65 73 69 67 | 6e 20 79 6f 75 72 20 61 |ou desig|n your a|
|00004570| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 46 61 69 6c |pplicati|on. Fail|
|00004580| 75 72 65 20 74 6f 20 68 | 65 65 64 20 74 68 65 73 |ure to h|eed thes|
|00004590| 65 20 77 61 72 6e 69 6e | 67 73 20 63 6f 75 6c 64 |e warnin|gs could|
|000045a0| 20 72 65 73 75 6c 74 20 | 69 6e 20 73 79 73 74 65 | result |in syste|
|000045b0| 6d 20 63 72 61 73 68 65 | 73 20 6f 72 20 6c 6f 73 |m crashe|s or los|
|000045c0| 73 20 6f 66 20 64 61 74 | 61 2e 20 28 41 6e 20 65 |s of dat|a. (An e|
|000045d0| 78 61 6d 70 6c 65 20 61 | 70 70 65 61 72 73 20 6f |xample a|ppears o|
|000045e0| 6e 20 70 61 67 65 20 31 | 2d 31 36 2e 29 13 73 0d |n page 1|-16.).s.|
|000045f0| 41 73 73 65 6d 62 6c 79 | 2d 4c 61 6e 67 75 61 67 |Assembly|-Languag|
|00004600| 65 20 49 6e 66 6f 72 6d | 61 74 69 6f 6e 0d 0d 49 |e Inform|ation..I|
|00004610| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00004620| 70 72 6f 76 69 64 65 73 | 20 69 6e 66 6f 72 6d 61 |provides| informa|
|00004630| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 72 |tion abo|ut the r|
|00004640| 65 67 69 73 74 65 72 73 | 20 66 6f 72 20 73 70 65 |egisters| for spe|
|00004650| 63 69 66 69 63 20 72 6f | 75 74 69 6e 65 73 20 6c |cific ro|utines l|
|00004660| 69 6b 65 20 74 68 69 73 | 3a 0d 52 65 67 69 73 74 |ike this|:.Regist|
|00004670| 65 72 73 20 6f 6e 20 65 | 6e 74 72 79 09 09 0d 41 |ers on e|ntry...A|
|00004680| 30 09 43 6f 6e 74 65 6e | 74 73 20 6f 66 20 72 65 |0.Conten|ts of re|
|00004690| 67 69 73 74 65 72 20 41 | 30 20 6f 6e 20 65 6e 74 |gister A|0 on ent|
|000046a0| 72 79 09 0d 0d 52 65 67 | 69 73 74 65 72 73 20 6f |ry...Reg|isters o|
|000046b0| 6e 20 65 78 69 74 09 09 | 0d 44 30 09 43 6f 6e 74 |n exit..|.D0.Cont|
|000046c0| 65 6e 74 73 20 6f 66 20 | 72 65 67 69 73 74 65 72 |ents of |register|
|000046d0| 20 44 30 20 6f 6e 20 65 | 78 69 74 09 0d 0d 49 6e | D0 on e|xit...In|
|000046e0| 20 61 64 64 69 74 69 6f | 6e 2c 20 49 6e 73 69 64 | additio|n, Insid|
|000046f0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 70 72 65 73 |e Macint|osh pres|
|00004700| 65 6e 74 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ents inf|ormation|
|00004710| 20 61 62 6f 75 74 20 74 | 68 65 20 66 69 65 6c 64 | about t|he field|
|00004720| 73 20 6f 66 20 61 20 70 | 61 72 61 6d 65 74 65 72 |s of a p|arameter|
|00004730| 20 62 6c 6f 63 6b 20 69 | 6e 20 74 68 69 73 20 66 | block i|n this f|
|00004740| 6f 72 6d 61 74 3a 0d 50 | 61 72 61 6d 65 74 65 72 |ormat:.P|arameter|
|00004750| 20 62 6c 6f 63 6b ab 09 | 69 6e 41 6e 64 4f 75 74 | block..|inAndOut|
|00004760| 09 49 6e 74 65 67 65 72 | 09 49 6e 70 75 74 2f 6f |.Integer|.Input/o|
|00004770| 75 74 70 75 74 20 70 61 | 72 61 6d 65 74 65 72 2e |utput pa|rameter.|
|00004780| 09 0d ac 09 6f 75 74 70 | 75 74 31 09 50 74 72 09 |....outp|ut1.Ptr.|
|00004790| 4f 75 74 70 75 74 20 70 | 61 72 61 6d 65 74 65 72 |Output p|arameter|
|000047a0| 2e 09 0d ae 09 69 6e 70 | 75 74 31 09 50 74 72 09 |.....inp|ut1.Ptr.|
|000047b0| 49 6e 70 75 74 20 70 61 | 72 61 6d 65 74 65 72 2e |Input pa|rameter.|
|000047c0| 09 0d 0d 54 68 65 20 61 | 72 72 6f 77 20 69 6e 20 |...The a|rrow in |
|000047d0| 74 68 65 20 66 61 72 20 | 6c 65 66 74 20 63 6f 6c |the far |left col|
|000047e0| 75 6d 6e 20 69 6e 64 69 | 63 61 74 65 73 20 77 68 |umn indi|cates wh|
|000047f0| 65 74 68 65 72 20 74 68 | 65 20 66 69 65 6c 64 20 |ether th|e field |
|00004800| 69 73 20 61 6e 20 69 6e | 70 75 74 20 70 61 72 61 |is an in|put para|
|00004810| 6d 65 74 65 72 2c 20 6f | 75 74 70 75 74 20 70 61 |meter, o|utput pa|
|00004820| 72 61 6d 65 74 65 72 2c | 20 6f 72 20 62 6f 74 68 |rameter,| or both|
|00004830| 2e 20 59 6f 75 20 6d 75 | 73 74 20 73 75 70 70 6c |. You mu|st suppl|
|00004840| 79 20 76 61 6c 75 65 73 | 20 66 6f 72 20 61 6c 6c |y values| for all|
|00004850| 20 69 6e 70 75 74 20 70 | 61 72 61 6d 65 74 65 72 | input p|arameter|
|00004860| 73 20 61 6e 64 20 69 6e | 70 75 74 2f 6f 75 74 70 |s and in|put/outp|
|00004870| 75 74 20 70 61 72 61 6d | 65 74 65 72 73 2e 20 54 |ut param|eters. T|
|00004880| 68 65 20 72 6f 75 74 69 | 6e 65 20 72 65 74 75 72 |he routi|ne retur|
|00004890| 6e 73 20 76 61 6c 75 65 | 73 20 69 6e 20 6f 75 74 |ns value|s in out|
|000048a0| 70 75 74 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |put para|meters a|
|000048b0| 6e 64 20 69 6e 70 75 74 | 2f 6f 75 74 70 75 74 20 |nd input|/output |
|000048c0| 70 61 72 61 6d 65 74 65 | 72 73 2e 0d 54 68 65 20 |paramete|rs..The |
|000048d0| 73 65 63 6f 6e 64 20 63 | 6f 6c 75 6d 6e 20 73 68 |second c|olumn sh|
|000048e0| 6f 77 73 20 74 68 65 20 | 66 69 65 6c 64 20 6e 61 |ows the |field na|
|000048f0| 6d 65 20 61 73 20 64 65 | 66 69 6e 65 64 20 69 6e |me as de|fined in|
|00004900| 20 74 68 65 20 4d 50 57 | 20 50 61 73 63 61 6c 20 | the MPW| Pascal |
|00004910| 69 6e 74 65 72 66 61 63 | 65 20 66 69 6c 65 73 3b |interfac|e files;|
|00004920| 20 74 68 65 20 74 68 69 | 72 64 20 63 6f 6c 75 6d | the thi|rd colum|
|00004930| 6e 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 65 20 |n indica|tes the |
|00004940| 50 61 73 63 61 6c 20 64 | 61 74 61 20 74 79 70 65 |Pascal d|ata type|
|00004950| 20 6f 66 20 74 68 61 74 | 20 66 69 65 6c 64 2e 20 | of that| field. |
|00004960| 54 68 65 20 66 6f 75 72 | 74 68 20 63 6f 6c 75 6d |The four|th colum|
|00004970| 6e 20 70 72 6f 76 69 64 | 65 73 20 61 20 62 72 69 |n provid|es a bri|
|00004980| 65 66 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |ef descr|iption o|
|00004990| 66 20 74 68 65 20 75 73 | 65 20 6f 66 20 74 68 65 |f the us|e of the|
|000049a0| 20 66 69 65 6c 64 2e 20 | 46 6f 72 20 61 20 63 6f | field. |For a co|
|000049b0| 6d 70 6c 65 74 65 20 64 | 65 73 63 72 69 70 74 69 |mplete d|escripti|
|000049c0| 6f 6e 20 6f 66 20 65 61 | 63 68 20 66 69 65 6c 64 |on of ea|ch field|
|000049d0| 2c 20 73 65 65 20 74 68 | 65 20 64 69 73 63 75 73 |, see th|e discus|
|000049e0| 73 69 6f 6e 20 74 68 61 | 74 20 66 6f 6c 6c 6f 77 |sion tha|t follow|
|000049f0| 73 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |s the pa|rameter |
|00004a00| 62 6c 6f 63 6b 20 6f 72 | 20 74 68 65 20 64 65 73 |block or| the des|
|00004a10| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |cription| of the |
|00004a20| 70 61 72 61 6d 65 74 65 | 72 20 62 6c 6f 63 6b 20 |paramete|r block |
|00004a30| 69 6e 20 74 68 65 20 72 | 65 66 65 72 65 6e 63 65 |in the r|eference|
|00004a40| 20 73 65 63 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | section| of the |
|00004a50| 63 68 61 70 74 65 72 2e | 0d 0d 44 65 76 65 6c 6f |chapter.|..Develo|
|00004a60| 70 6d 65 6e 74 20 45 6e | 76 69 72 6f 6e 6d 65 6e |pment En|vironmen|
|00004a70| 74 0d 0d 54 68 65 20 73 | 79 73 74 65 6d 20 73 6f |t..The s|ystem so|
|00004a80| 66 74 77 61 72 65 20 72 | 6f 75 74 69 6e 65 73 20 |ftware r|outines |
|00004a90| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 69 |describe|d in thi|
|00004aa0| 73 20 62 6f 6f 6b 20 61 | 72 65 20 61 76 61 69 6c |s book a|re avail|
|00004ab0| 61 62 6c 65 20 75 73 69 | 6e 67 20 50 61 73 63 61 |able usi|ng Pasca|
|00004ac0| 6c 2c 20 43 2c 20 6f 72 | 20 61 73 73 65 6d 62 6c |l, C, or| assembl|
|00004ad0| 79 2d 6c 61 6e 67 75 61 | 67 65 20 69 6e 74 65 72 |y-langua|ge inter|
|00004ae0| 66 61 63 65 73 2e 20 48 | 6f 77 20 79 6f 75 20 61 |faces. H|ow you a|
|00004af0| 63 63 65 73 73 20 74 68 | 65 73 65 20 72 6f 75 74 |ccess th|ese rout|
|00004b00| 69 6e 65 73 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |ines dep|ends on |
|00004b10| 74 68 65 20 64 65 76 65 | 6c 6f 70 6d 65 6e 74 20 |the deve|lopment |
|00004b20| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 79 6f 75 20 |environm|ent you |
|00004b30| 61 72 65 20 75 73 69 6e | 67 2e 20 54 68 69 73 20 |are usin|g. This |
|00004b40| 62 6f 6f 6b 20 73 68 6f | 77 73 20 73 79 73 74 65 |book sho|ws syste|
|00004b50| 6d 20 73 6f 66 74 77 61 | 72 65 20 72 6f 75 74 69 |m softwa|re routi|
|00004b60| 6e 65 73 20 69 6e 20 74 | 68 65 69 72 20 50 61 73 |nes in t|heir Pas|
|00004b70| 63 61 6c 20 69 6e 74 65 | 72 66 61 63 65 20 75 73 |cal inte|rface us|
|00004b80| 69 6e 67 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |ing the |Macintos|
|00004b90| 68 20 50 72 6f 67 72 61 | 6d 6d 65 72 d5 73 20 57 |h Progra|mmer.s W|
|00004ba0| 6f 72 6b 73 68 6f 70 20 | 28 4d 50 57 29 2e 20 0d |orkshop |(MPW). .|
|00004bb0| 41 6c 6c 20 63 6f 64 65 | 20 6c 69 73 74 69 6e 67 |All code| listing|
|00004bc0| 73 20 69 6e 20 74 68 69 | 73 20 62 6f 6f 6b 20 61 |s in thi|s book a|
|00004bd0| 72 65 20 73 68 6f 77 6e | 20 69 6e 20 50 61 73 63 |re shown| in Pasc|
|00004be0| 61 6c 2e 20 54 68 65 79 | 20 73 68 6f 77 20 6d 65 |al. They| show me|
|00004bf0| 74 68 6f 64 73 20 6f 66 | 20 75 73 69 6e 67 20 76 |thods of| using v|
|00004c00| 61 72 69 6f 75 73 20 72 | 6f 75 74 69 6e 65 73 20 |arious r|outines |
|00004c10| 61 6e 64 20 69 6c 6c 75 | 73 74 72 61 74 65 20 74 |and illu|strate t|
|00004c20| 65 63 68 6e 69 71 75 65 | 73 20 66 6f 72 20 61 63 |echnique|s for ac|
|00004c30| 63 6f 6d 70 6c 69 73 68 | 69 6e 67 20 70 61 72 74 |complish|ing part|
|00004c40| 69 63 75 6c 61 72 20 74 | 61 73 6b 73 2e 20 41 6c |icular t|asks. Al|
|00004c50| 6c 20 63 6f 64 65 20 6c | 69 73 74 69 6e 67 73 20 |l code l|istings |
|00004c60| 68 61 76 65 20 62 65 65 | 6e 20 63 6f 6d 70 69 6c |have bee|n compil|
|00004c70| 65 64 20 61 6e 64 2c 20 | 69 6e 20 6d 6f 73 74 20 |ed and, |in most |
|00004c80| 63 61 73 65 73 2c 20 74 | 65 73 74 65 64 2e 20 48 |cases, t|ested. H|
|00004c90| 6f 77 65 76 65 72 2c 20 | 41 70 70 6c 65 20 43 6f |owever, |Apple Co|
|00004ca0| 6d 70 75 74 65 72 20 64 | 6f 65 73 20 6e 6f 74 20 |mputer d|oes not |
|00004cb0| 69 6e 74 65 6e 64 20 74 | 68 61 74 20 79 6f 75 20 |intend t|hat you |
|00004cc0| 75 73 65 20 74 68 65 73 | 65 20 63 6f 64 65 20 73 |use thes|e code s|
|00004cd0| 61 6d 70 6c 65 73 20 69 | 6e 20 79 6f 75 72 20 61 |amples i|n your a|
|00004ce0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 41 50 44 41 |pplicati|on..APDA|
|00004cf0| 2c 20 41 70 70 6c 65 d5 | 73 20 73 6f 75 72 63 65 |, Apple.|s source|
|00004d00| 20 66 6f 72 20 64 65 76 | 65 6c 6f 70 65 72 20 74 | for dev|eloper t|
|00004d10| 6f 6f 6c 73 2c 20 6f 66 | 66 65 72 73 20 77 6f 72 |ools, of|fers wor|
|00004d20| 6c 64 77 69 64 65 20 61 | 63 63 65 73 73 20 74 6f |ldwide a|ccess to|
|00004d30| 20 61 20 62 72 6f 61 64 | 20 72 61 6e 67 65 20 6f | a broad| range o|
|00004d40| 66 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 70 72 |f progra|mming pr|
|00004d50| 6f 64 75 63 74 73 2c 20 | 72 65 73 6f 75 72 63 65 |oducts, |resource|
|00004d60| 73 2c 20 61 6e 64 20 69 | 6e 66 6f 72 6d 61 74 69 |s, and i|nformati|
|00004d70| 6f 6e 20 66 6f 72 20 61 | 6e 79 6f 6e 65 20 64 65 |on for a|nyone de|
|00004d80| 76 65 6c 6f 70 69 6e 67 | 20 6f 6e 20 41 70 70 6c |veloping| on Appl|
|00004d90| 65 20 70 6c 61 74 66 6f | 72 6d 73 2e 20 59 6f 75 |e platfo|rms. You|
|00004da0| d5 6c 6c 20 66 69 6e 64 | 20 74 68 65 20 6d 6f 73 |.ll find| the mos|
|00004db0| 74 20 63 75 72 72 65 6e | 74 20 76 65 72 73 69 6f |t curren|t versio|
|00004dc0| 6e 73 20 6f 66 20 41 70 | 70 6c 65 20 61 6e 64 20 |ns of Ap|ple and |
|00004dd0| 74 68 69 72 64 2d 70 61 | 72 74 79 20 64 65 76 65 |third-pa|rty deve|
|00004de0| 6c 6f 70 6d 65 6e 74 20 | 74 6f 6f 6c 73 2c 20 64 |lopment |tools, d|
|00004df0| 65 62 75 67 67 65 72 73 | 2c 20 63 6f 6d 70 69 6c |ebuggers|, compil|
|00004e00| 65 72 73 2c 20 6c 61 6e | 67 75 61 67 65 73 2c 20 |ers, lan|guages, |
|00004e10| 61 6e 64 20 74 65 63 68 | 6e 69 63 61 6c 20 72 65 |and tech|nical re|
|00004e20| 66 65 72 65 6e 63 65 73 | 20 66 6f 72 20 61 6c 6c |ferences| for all|
|00004e30| 20 41 70 70 6c 65 20 70 | 6c 61 74 66 6f 72 6d 73 | Apple p|latforms|
|00004e40| 2e 20 54 6f 20 65 73 74 | 61 62 6c 69 73 68 20 61 |. To est|ablish a|
|00004e50| 6e 20 41 50 44 41 20 61 | 63 63 6f 75 6e 74 2c 20 |n APDA a|ccount, |
|00004e60| 6f 62 74 61 69 6e 20 61 | 64 64 69 74 69 6f 6e 61 |obtain a|dditiona|
|00004e70| 6c 20 6f 72 64 65 72 69 | 6e 67 20 69 6e 66 6f 72 |l orderi|ng infor|
|00004e80| 6d 61 74 69 6f 6e 2c 20 | 6f 72 20 66 69 6e 64 20 |mation, |or find |
|00004e90| 6f 75 74 20 61 62 6f 75 | 74 20 73 69 74 65 20 6c |out abou|t site l|
|00004ea0| 69 63 65 6e 73 69 6e 67 | 20 61 6e 64 20 64 65 76 |icensing| and dev|
|00004eb0| 65 6c 6f 70 65 72 20 74 | 72 61 69 6e 69 6e 67 20 |eloper t|raining |
|00004ec0| 70 72 6f 67 72 61 6d 73 | 2c 20 63 6f 6e 74 61 63 |programs|, contac|
|00004ed0| 74 0d 41 50 44 41 0d 41 | 70 70 6c 65 20 43 6f 6d |t.APDA.A|pple Com|
|00004ee0| 70 75 74 65 72 2c 20 49 | 6e 63 2e 0d 32 30 35 32 |puter, I|nc..2052|
|00004ef0| 35 20 4d 61 72 69 61 6e | 69 20 41 76 65 6e 75 65 |5 Marian|i Avenue|
|00004f00| 2c 20 4d 2f 53 20 33 33 | 2d 47 0d 43 75 70 65 72 |, M/S 33|-G.Cuper|
|00004f10| 74 69 6e 6f 2c 20 43 41 | 20 39 35 30 31 34 2d 36 |tino, CA| 95014-6|
|00004f20| 32 39 39 54 65 6c 65 70 | 68 6f 6e 65 3a 09 38 30 |299Telep|hone:.80|
|00004f30| 30 2d 32 38 32 2d 32 37 | 33 32 20 28 55 6e 69 74 |0-282-27|32 (Unit|
|00004f40| 65 64 20 53 74 61 74 65 | 73 29 0d 38 30 30 2d 36 |ed State|s).800-6|
|00004f50| 33 37 2d 30 30 32 39 20 | 28 43 61 6e 61 64 61 29 |37-0029 |(Canada)|
|00004f60| 0d 38 30 30 2d 35 36 32 | 2d 33 39 31 30 20 28 65 |.800-562|-3910 (e|
|00004f70| 6c 73 65 77 68 65 72 65 | 20 69 6e 20 74 68 65 20 |lsewhere| in the |
|00004f80| 77 6f 72 6c 64 29 09 0d | 46 61 78 3a 09 34 30 38 |world)..|Fax:.408|
|00004f90| 2d 35 36 32 2d 33 39 37 | 31 09 0d 54 65 6c 65 78 |-562-397|1..Telex|
|00004fa0| 3a 09 31 37 31 2d 35 37 | 36 09 0d 0d 49 66 20 79 |:.171-57|6...If y|
|00004fb0| 6f 75 20 70 72 6f 76 69 | 64 65 20 63 6f 6d 6d 65 |ou provi|de comme|
|00004fc0| 72 63 69 61 6c 20 70 72 | 6f 64 75 63 74 73 20 61 |rcial pr|oducts a|
|00004fd0| 6e 64 20 73 65 72 76 69 | 63 65 73 2c 20 63 61 6c |nd servi|ces, cal|
|00004fe0| 6c 20 34 30 38 2d 39 37 | 34 2d 34 38 39 37 20 66 |l 408-97|4-4897 f|
|00004ff0| 6f 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |or infor|mation o|
|00005000| 6e 20 74 68 65 20 64 65 | 76 65 6c 6f 70 65 72 20 |n the de|veloper |
|00005010| 73 75 70 70 6f 72 74 20 | 70 72 6f 67 72 61 6d 73 |support |programs|
|00005020| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 72 6f 6d 20 | availab|le from |
|00005030| 41 70 70 6c 65 2e 0d 46 | 6f 72 20 69 6e 66 6f 72 |Apple..F|or infor|
|00005040| 6d 61 74 69 6f 6e 20 6f | 6e 20 72 65 67 69 73 74 |mation o|n regist|
|00005050| 65 72 69 6e 67 20 73 69 | 67 6e 61 74 75 72 65 73 |ering si|gnatures|
|00005060| 2c 20 66 69 6c 65 20 74 | 79 70 65 73 2c 20 41 70 |, file t|ypes, Ap|
|00005070| 70 6c 65 20 65 76 65 6e | 74 73 2c 20 61 6e 64 20 |ple even|ts, and |
|00005080| 6f 74 68 65 72 20 74 65 | 63 68 6e 69 63 61 6c 20 |other te|chnical |
|00005090| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2c 20 63 6f 6e |informat|ion, con|
|000050a0| 74 61 63 74 0d 4d 61 63 | 69 6e 74 6f 73 68 20 44 |tact.Mac|intosh D|
|000050b0| 65 76 65 6c 6f 70 65 72 | 20 54 65 63 68 6e 69 63 |eveloper| Technic|
|000050c0| 61 6c 20 53 75 70 70 6f | 72 74 0d 41 70 70 6c 65 |al Suppo|rt.Apple|
|000050d0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|000050e0| 32 30 35 32 35 20 4d 61 | 72 69 61 6e 69 20 41 76 |20525 Ma|riani Av|
|000050f0| 65 6e 75 65 2c 20 4d 2f | 53 20 37 35 2d 33 54 0d |enue, M/|S 75-3T.|
|00005100| 43 75 70 65 72 74 69 6e | 6f 2c 20 43 41 20 39 35 |Cupertin|o, CA 95|
|00005110| 30 31 34 2d 36 32 39 39 | 0d 4c 69 73 74 69 6e 67 |014-6299|.Listing|
|00005120| 20 31 2d 30 0d 54 61 62 | 6c 65 20 31 2d 30 0d 49 | 1-0.Tab|le 1-0.I|
|00005130| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 20 74 6f 20 4d |ntroduct|ion to M|
|00005140| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 6d 65 6e 74 |emory Ma|nagement|
|00005150| 0d 43 6f 6e 74 65 6e 74 | 73 0d 41 62 6f 75 74 20 |.Content|s.About |
|00005160| 4d 65 6d 6f 72 79 14 14 | 31 2d 34 0d 4f 72 67 61 |Memory..|1-4.Orga|
|00005170| 6e 69 7a 61 74 69 6f 6e | 20 6f 66 20 4d 65 6d 6f |nization| of Memo|
|00005180| 72 79 20 62 79 20 74 68 | 65 20 4f 70 65 72 61 74 |ry by th|e Operat|
|00005190| 69 6e 67 20 53 79 73 74 | 65 6d 14 14 31 2d 34 0d |ing Syst|em..1-4.|
|000051a0| 54 68 65 20 53 79 73 74 | 65 6d 20 48 65 61 70 14 |The Syst|em Heap.|
|000051b0| 14 31 2d 36 0d 54 68 65 | 20 53 79 73 74 65 6d 20 |.1-6.The| System |
|000051c0| 47 6c 6f 62 61 6c 20 56 | 61 72 69 61 62 6c 65 73 |Global V|ariables|
|000051d0| 14 14 31 2d 36 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |..1-6.Or|ganizati|
|000051e0| 6f 6e 20 6f 66 20 4d 65 | 6d 6f 72 79 20 69 6e 20 |on of Me|mory in |
|000051f0| 61 6e 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 50 |an Appli|cation P|
|00005200| 61 72 74 69 74 69 6f 6e | 14 14 31 2d 37 0d 54 68 |artition|..1-7.Th|
|00005210| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 53 74 |e Applic|ation St|
|00005220| 61 63 6b 14 14 31 2d 38 | 0d 54 68 65 20 41 70 70 |ack..1-8|.The App|
|00005230| 6c 69 63 61 74 69 6f 6e | 20 48 65 61 70 14 14 31 |lication| Heap..1|
|00005240| 2d 39 0d 54 68 65 20 41 | 70 70 6c 69 63 61 74 69 |-9.The A|pplicati|
|00005250| 6f 6e 20 47 6c 6f 62 61 | 6c 20 56 61 72 69 61 62 |on Globa|l Variab|
|00005260| 6c 65 73 20 61 6e 64 20 | 41 35 20 57 6f 72 6c 64 |les and |A5 World|
|00005270| 14 14 31 2d 31 32 0d 54 | 65 6d 70 6f 72 61 72 79 |..1-12.T|emporary|
|00005280| 20 4d 65 6d 6f 72 79 14 | 14 31 2d 31 33 0d 56 69 | Memory.|.1-13.Vi|
|00005290| 72 74 75 61 6c 20 4d 65 | 6d 6f 72 79 14 14 31 2d |rtual Me|mory..1-|
|000052a0| 31 35 0d 41 64 64 72 65 | 73 73 69 6e 67 20 4d 6f |15.Addre|ssing Mo|
|000052b0| 64 65 73 14 14 31 2d 31 | 35 0d 48 65 61 70 20 4d |des..1-1|5.Heap M|
|000052c0| 61 6e 61 67 65 6d 65 6e | 74 14 14 31 2d 31 36 0d |anagemen|t..1-16.|
|000052d0| 52 65 6c 6f 63 61 74 61 | 62 6c 65 20 61 6e 64 20 |Relocata|ble and |
|000052e0| 4e 6f 6e 72 65 6c 6f 63 | 61 74 61 62 6c 65 20 42 |Nonreloc|atable B|
|000052f0| 6c 6f 63 6b 73 14 14 31 | 2d 31 36 0d 50 72 6f 70 |locks..1|-16.Prop|
|00005300| 65 72 74 69 65 73 20 6f | 66 20 52 65 6c 6f 63 61 |erties o|f Reloca|
|00005310| 74 61 62 6c 65 20 42 6c | 6f 63 6b 73 14 14 31 2d |table Bl|ocks..1-|
|00005320| 32 30 0d 4c 6f 63 6b 69 | 6e 67 20 61 6e 64 20 55 |20.Locki|ng and U|
|00005330| 6e 6c 6f 63 6b 69 6e 67 | 20 52 65 6c 6f 63 61 74 |nlocking| Relocat|
|00005340| 61 62 6c 65 20 42 6c 6f | 63 6b 73 14 14 31 2d 32 |able Blo|cks..1-2|
|00005350| 30 0d 50 75 72 67 69 6e | 67 20 61 6e 64 20 52 65 |0.Purgin|g and Re|
|00005360| 61 6c 6c 6f 63 61 74 69 | 6e 67 20 52 65 6c 6f 63 |allocati|ng Reloc|
|00005370| 61 74 61 62 6c 65 20 42 | 6c 6f 63 6b 73 14 14 31 |atable B|locks..1|
|00005380| 2d 32 31 0d 4d 65 6d 6f | 72 79 20 52 65 73 65 72 |-21.Memo|ry Reser|
|00005390| 76 61 74 69 6f 6e 14 14 | 31 2d 32 32 0d 48 65 61 |vation..|1-22.Hea|
|000053a0| 70 20 50 75 72 67 69 6e | 67 20 61 6e 64 20 43 6f |p Purgin|g and Co|
|000053b0| 6d 70 61 63 74 69 6f 6e | 14 14 31 2d 32 33 0d 48 |mpaction|..1-23.H|
|000053c0| 65 61 70 20 46 72 61 67 | 6d 65 6e 74 61 74 69 6f |eap Frag|mentatio|
|000053d0| 6e 14 14 31 2d 32 34 0d | 44 65 61 6c 6c 6f 63 61 |n..1-24.|Dealloca|
|000053e0| 74 69 6e 67 20 4e 6f 6e | 72 65 6c 6f 63 61 74 61 |ting Non|relocata|
|000053f0| 62 6c 65 20 42 6c 6f 63 | 6b 73 14 14 31 2d 32 35 |ble Bloc|ks..1-25|
|00005400| 0d 52 65 73 65 72 76 69 | 6e 67 20 4d 65 6d 6f 72 |.Reservi|ng Memor|
|00005410| 79 14 14 31 2d 32 35 0d | 4c 6f 63 6b 69 6e 67 20 |y..1-25.|Locking |
|00005420| 52 65 6c 6f 63 61 74 61 | 62 6c 65 20 42 6c 6f 63 |Relocata|ble Bloc|
|00005430| 6b 73 14 14 31 2d 32 36 | 0d 41 6c 6c 6f 63 61 74 |ks..1-26|.Allocat|
|00005440| 69 6e 67 20 4e 6f 6e 72 | 65 6c 6f 63 61 74 61 62 |ing Nonr|elocatab|
|00005450| 6c 65 20 42 6c 6f 63 6b | 73 14 14 31 2d 32 37 0d |le Block|s..1-27.|
|00005460| 53 75 6d 6d 61 72 79 20 | 6f 66 20 50 72 65 76 65 |Summary |of Preve|
|00005470| 6e 74 69 6e 67 20 46 72 | 61 67 6d 65 6e 74 61 74 |nting Fr|agmentat|
|00005480| 69 6f 6e 14 14 31 2d 32 | 38 0d 44 61 6e 67 6c 69 |ion..1-2|8.Dangli|
|00005490| 6e 67 20 50 6f 69 6e 74 | 65 72 73 14 14 31 2d 32 |ng Point|ers..1-2|
|000054a0| 39 0d 43 6f 6d 70 69 6c | 65 72 20 44 65 72 65 66 |9.Compil|er Deref|
|000054b0| 65 72 65 6e 63 69 6e 67 | 14 14 31 2d 32 39 0d 4c |erencing|..1-29.L|
|000054c0| 6f 61 64 69 6e 67 20 43 | 6f 64 65 20 53 65 67 6d |oading C|ode Segm|
|000054d0| 65 6e 74 73 14 14 31 2d | 33 31 0d 43 61 6c 6c 62 |ents..1-|31.Callb|
|000054e0| 61 63 6b 20 52 6f 75 74 | 69 6e 65 73 14 14 31 2d |ack Rout|ines..1-|
|000054f0| 33 32 0d 49 6e 76 61 6c | 69 64 20 48 61 6e 64 6c |32.Inval|id Handl|
|00005500| 65 73 14 14 31 2d 33 33 | 0d 44 69 73 70 6f 73 65 |es..1-33|.Dispose|
|00005510| 64 20 48 61 6e 64 6c 65 | 73 14 14 31 2d 33 33 0d |d Handle|s..1-33.|
|00005520| 45 6d 70 74 79 20 48 61 | 6e 64 6c 65 73 14 14 31 |Empty Ha|ndles..1|
|00005530| 2d 33 34 0d 46 61 6b 65 | 20 48 61 6e 64 6c 65 73 |-34.Fake| Handles|
|00005540| 14 14 31 2d 33 35 0d 4c | 6f 77 2d 4d 65 6d 6f 72 |..1-35.L|ow-Memor|
|00005550| 79 20 43 6f 6e 64 69 74 | 69 6f 6e 73 14 14 31 2d |y Condit|ions..1-|
|00005560| 33 36 0d 4d 65 6d 6f 72 | 79 20 43 75 73 68 69 6f |36.Memor|y Cushio|
|00005570| 6e 73 14 14 31 2d 33 36 | 0d 4d 65 6d 6f 72 79 20 |ns..1-36|.Memory |
|00005580| 52 65 73 65 72 76 65 73 | 14 14 31 2d 33 37 0d 47 |Reserves|..1-37.G|
|00005590| 72 6f 77 2d 5a 6f 6e 65 | 20 46 75 6e 63 74 69 6f |row-Zone| Functio|
|000055a0| 6e 73 14 14 31 2d 33 38 | 0d 55 73 69 6e 67 20 4d |ns..1-38|.Using M|
|000055b0| 65 6d 6f 72 79 14 14 31 | 2d 33 38 0d 53 65 74 74 |emory..1|-38.Sett|
|000055c0| 69 6e 67 20 55 70 20 74 | 68 65 20 41 70 70 6c 69 |ing Up t|he Appli|
|000055d0| 63 61 74 69 6f 6e 20 48 | 65 61 70 14 14 31 2d 33 |cation H|eap..1-3|
|000055e0| 38 0d 43 68 61 6e 67 69 | 6e 67 20 74 68 65 20 53 |8.Changi|ng the S|
|000055f0| 69 7a 65 20 6f 66 20 74 | 68 65 20 53 74 61 63 6b |ize of t|he Stack|
|00005600| 14 14 31 2d 33 39 0d 45 | 78 70 61 6e 64 69 6e 67 |..1-39.E|xpanding|
|00005610| 20 74 68 65 20 48 65 61 | 70 14 14 31 2d 34 30 0d | the Hea|p..1-40.|
|00005620| 41 6c 6c 6f 63 61 74 69 | 6e 67 20 4d 61 73 74 65 |Allocati|ng Maste|
|00005630| 72 20 50 6f 69 6e 74 65 | 72 20 42 6c 6f 63 6b 73 |r Pointe|r Blocks|
|00005640| 14 14 31 2d 34 31 0d 44 | 65 74 65 72 6d 69 6e 69 |..1-41.D|etermini|
|00005650| 6e 67 20 74 68 65 20 41 | 6d 6f 75 6e 74 20 6f 66 |ng the A|mount of|
|00005660| 20 46 72 65 65 20 4d 65 | 6d 6f 72 79 14 14 31 2d | Free Me|mory..1-|
|00005670| 34 32 0d 41 6c 6c 6f 63 | 61 74 69 6e 67 20 42 6c |42.Alloc|ating Bl|
|00005680| 6f 63 6b 73 20 6f 66 20 | 4d 65 6d 6f 72 79 14 14 |ocks of |Memory..|
|00005690| 31 2d 34 34 0d 4d 61 69 | 6e 74 61 69 6e 69 6e 67 |1-44.Mai|ntaining|
|000056a0| 20 61 20 4d 65 6d 6f 72 | 79 20 52 65 73 65 72 76 | a Memor|y Reserv|
|000056b0| 65 14 14 31 2d 34 36 0d | 44 65 66 69 6e 69 6e 67 |e..1-46.|Defining|
|000056c0| 20 61 20 47 72 6f 77 2d | 5a 6f 6e 65 20 46 75 6e | a Grow-|Zone Fun|
|000056d0| 63 74 69 6f 6e 14 14 31 | 2d 34 38 0d 4d 65 6d 6f |ction..1|-48.Memo|
|000056e0| 72 79 20 4d 61 6e 61 67 | 65 6d 65 6e 74 20 52 65 |ry Manag|ement Re|
|000056f0| 66 65 72 65 6e 63 65 14 | 14 31 2d 35 30 0d 4d 65 |ference.|.1-50.Me|
|00005700| 6d 6f 72 79 20 4d 61 6e | 61 67 65 6d 65 6e 74 20 |mory Man|agement |
|00005710| 52 6f 75 74 69 6e 65 73 | 14 14 31 2d 35 30 0d 53 |Routines|..1-50.S|
|00005720| 65 74 74 69 6e 67 20 55 | 70 20 74 68 65 20 41 70 |etting U|p the Ap|
|00005730| 70 6c 69 63 61 74 69 6f | 6e 20 48 65 61 70 14 14 |plicatio|n Heap..|
|00005740| 31 2d 35 30 0d 41 6c 6c | 6f 63 61 74 69 6e 67 20 |1-50.All|ocating |
|00005750| 61 6e 64 20 52 65 6c 65 | 61 73 69 6e 67 20 52 65 |and Rele|asing Re|
|00005760| 6c 6f 63 61 74 61 62 6c | 65 20 42 6c 6f 63 6b 73 |locatabl|e Blocks|
|00005770| 20 6f 66 20 4d 65 6d 6f | 72 79 14 14 31 2d 35 34 | of Memo|ry..1-54|
|00005780| 0d 41 6c 6c 6f 63 61 74 | 69 6e 67 20 61 6e 64 20 |.Allocat|ing and |
|00005790| 52 65 6c 65 61 73 69 6e | 67 20 4e 6f 6e 72 65 6c |Releasin|g Nonrel|
|000057a0| 6f 63 61 74 61 62 6c 65 | 20 42 6c 6f 63 6b 73 20 |ocatable| Blocks |
|000057b0| 6f 66 20 4d 65 6d 6f 72 | 79 14 14 31 2d 35 38 0d |of Memor|y..1-58.|
|000057c0| 53 65 74 74 69 6e 67 20 | 74 68 65 20 50 72 6f 70 |Setting |the Prop|
|000057d0| 65 72 74 69 65 73 20 6f | 66 20 52 65 6c 6f 63 61 |erties o|f Reloca|
|000057e0| 74 61 62 6c 65 20 42 6c | 6f 63 6b 73 14 14 31 2d |table Bl|ocks..1-|
|000057f0| 36 30 0d 4d 61 6e 61 67 | 69 6e 67 20 52 65 6c 6f |60.Manag|ing Relo|
|00005800| 63 61 74 61 62 6c 65 20 | 42 6c 6f 63 6b 73 14 14 |catable |Blocks..|
|00005810| 31 2d 36 37 0d 4d 61 6e | 69 70 75 6c 61 74 69 6e |1-67.Man|ipulatin|
|00005820| 67 20 42 6c 6f 63 6b 73 | 20 6f 66 20 4d 65 6d 6f |g Blocks| of Memo|
|00005830| 72 79 14 14 31 2d 37 33 | 0d 41 73 73 65 73 73 69 |ry..1-73|.Assessi|
|00005840| 6e 67 20 4d 65 6d 6f 72 | 79 20 43 6f 6e 64 69 74 |ng Memor|y Condit|
|00005850| 69 6f 6e 73 14 14 31 2d | 37 35 0d 47 72 6f 77 2d |ions..1-|75.Grow-|
|00005860| 5a 6f 6e 65 20 4f 70 65 | 72 61 74 69 6f 6e 73 14 |Zone Ope|rations.|
|00005870| 14 31 2d 37 37 0d 53 65 | 74 74 69 6e 67 20 61 6e |.1-77.Se|tting an|
|00005880| 64 20 52 65 73 74 6f 72 | 69 6e 67 20 74 68 65 20 |d Restor|ing the |
|00005890| 41 35 20 52 65 67 69 73 | 74 65 72 14 14 31 2d 37 |A5 Regis|ter..1-7|
|000058a0| 38 0d 41 70 70 6c 69 63 | 61 74 69 6f 6e 2d 44 65 |8.Applic|ation-De|
|000058b0| 66 69 6e 65 64 20 52 6f | 75 74 69 6e 65 73 14 14 |fined Ro|utines..|
|000058c0| 31 2d 38 30 0d 47 72 6f | 77 2d 5a 6f 6e 65 20 46 |1-80.Gro|w-Zone F|
|000058d0| 75 6e 63 74 69 6f 6e 73 | 14 14 31 2d 38 30 0d 53 |unctions|..1-80.S|
|000058e0| 75 6d 6d 61 72 79 20 6f | 66 20 4d 65 6d 6f 72 79 |ummary o|f Memory|
|000058f0| 20 4d 61 6e 61 67 65 6d | 65 6e 74 14 14 31 2d 38 | Managem|ent..1-8|
|00005900| 32 0d 50 61 73 63 61 6c | 20 53 75 6d 6d 61 72 79 |2.Pascal| Summary|
|00005910| 14 14 31 2d 38 32 0d 44 | 61 74 61 20 54 79 70 65 |..1-82.D|ata Type|
|00005920| 73 14 14 31 2d 38 32 0d | 4d 65 6d 6f 72 79 20 4d |s..1-82.|Memory M|
|00005930| 61 6e 61 67 65 6d 65 6e | 74 20 52 6f 75 74 69 6e |anagemen|t Routin|
|00005940| 65 73 14 14 31 2d 38 32 | 0d 41 70 70 6c 69 63 61 |es..1-82|.Applica|
|00005950| 74 69 6f 6e 2d 44 65 66 | 69 6e 65 64 20 52 6f 75 |tion-Def|ined Rou|
|00005960| 74 69 6e 65 73 14 14 31 | 2d 38 33 0d 43 20 53 75 |tines..1|-83.C Su|
|00005970| 6d 6d 61 72 79 14 14 31 | 2d 38 34 0d 44 61 74 61 |mmary..1|-84.Data|
|00005980| 20 54 79 70 65 73 14 14 | 31 2d 38 34 0d 4d 65 6d | Types..|1-84.Mem|
|00005990| 6f 72 79 20 4d 61 6e 61 | 67 65 6d 65 6e 74 20 52 |ory Mana|gement R|
|000059a0| 6f 75 74 69 6e 65 73 14 | 14 31 2d 38 34 0d 41 70 |outines.|.1-84.Ap|
|000059b0| 70 6c 69 63 61 74 69 6f | 6e 2d 44 65 66 69 6e 65 |plicatio|n-Define|
|000059c0| 64 20 52 6f 75 74 69 6e | 65 73 14 14 31 2d 38 35 |d Routin|es..1-85|
|000059d0| 0d 41 73 73 65 6d 62 6c | 79 2d 4c 61 6e 67 75 61 |.Assembl|y-Langua|
|000059e0| 67 65 20 53 75 6d 6d 61 | 72 79 14 14 31 2d 38 36 |ge Summa|ry..1-86|
|000059f0| 0d 47 6c 6f 62 61 6c 20 | 56 61 72 69 61 62 6c 65 |.Global |Variable|
|00005a00| 73 14 14 31 2d 38 36 0d | 52 65 73 75 6c 74 20 43 |s..1-86.|Result C|
|00005a10| 6f 64 65 73 14 14 31 2d | 38 36 0d 49 6e 74 72 6f |odes..1-|86.Intro|
|00005a20| 64 75 63 74 69 6f 6e 20 | 74 6f 20 4d 65 6d 6f 72 |duction |to Memor|
|00005a30| 79 20 4d 61 6e 61 67 65 | 6d 65 6e 74 0d 54 68 69 |y Manage|ment.Thi|
|00005a40| 73 20 63 68 61 70 74 65 | 72 20 69 73 20 61 20 67 |s chapte|r is a g|
|00005a50| 65 6e 65 72 61 6c 20 69 | 6e 74 72 6f 64 75 63 74 |eneral i|ntroduct|
|00005a60| 69 6f 6e 20 74 6f 20 6d | 65 6d 6f 72 79 20 6d 61 |ion to m|emory ma|
|00005a70| 6e 61 67 65 6d 65 6e 74 | 20 6f 6e 20 4d 61 63 69 |nagement| on Maci|
|00005a80| 6e 74 6f 73 68 20 63 6f | 6d 70 75 74 65 72 73 2e |ntosh co|mputers.|
|00005a90| 20 49 74 20 64 65 73 63 | 72 69 62 65 73 20 68 6f | It desc|ribes ho|
|00005aa0| 77 20 74 68 65 20 4f 70 | 65 72 61 74 69 6e 67 20 |w the Op|erating |
|00005ab0| 53 79 73 74 65 6d 20 6f | 72 67 61 6e 69 7a 65 73 |System o|rganizes|
|00005ac0| 20 61 6e 64 20 6d 61 6e | 61 67 65 73 20 74 68 65 | and man|ages the|
|00005ad0| 20 61 76 61 69 6c 61 62 | 6c 65 20 6d 65 6d 6f 72 | availab|le memor|
|00005ae0| 79 2c 20 61 6e 64 20 69 | 74 20 73 68 6f 77 73 20 |y, and i|t shows |
|00005af0| 68 6f 77 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |how you |can use |
|00005b00| 74 68 65 20 73 65 72 76 | 69 63 65 73 20 70 72 6f |the serv|ices pro|
|00005b10| 76 69 64 65 64 20 62 79 | 20 74 68 65 20 4d 65 6d |vided by| the Mem|
|00005b20| 6f 72 79 20 4d 61 6e 61 | 67 65 72 20 61 6e 64 20 |ory Mana|ger and |
|00005b30| 6f 74 68 65 72 20 73 79 | 73 74 65 6d 20 73 6f 66 |other sy|stem sof|
|00005b40| 74 77 61 72 65 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |tware co|mponents|
|00005b50| 20 74 6f 20 6d 61 6e 61 | 67 65 20 74 68 65 20 6d | to mana|ge the m|
|00005b60| 65 6d 6f 72 79 20 69 6e | 20 79 6f 75 72 20 61 70 |emory in| your ap|
|00005b70| 70 6c 69 63 61 74 69 6f | 6e 20 70 61 72 74 69 74 |plicatio|n partit|
|00005b80| 69 6f 6e 20 65 66 66 65 | 63 74 69 76 65 6c 79 2e |ion effe|ctively.|
|00005b90| 0d 59 6f 75 20 73 68 6f | 75 6c 64 20 72 65 61 64 |.You sho|uld read|
|00005ba0| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 20 69 66 | this ch|apter if|
|00005bb0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00005bc0| 6e 20 6f 72 20 6f 74 68 | 65 72 20 73 6f 66 74 77 |n or oth|er softw|
|00005bd0| 61 72 65 20 61 6c 6c 6f | 63 61 74 65 73 20 6d 65 |are allo|cates me|
|00005be0| 6d 6f 72 79 20 64 79 6e | 61 6d 69 63 61 6c 6c 79 |mory dyn|amically|
|00005bf0| 20 64 75 72 69 6e 67 20 | 69 74 73 20 65 78 65 63 | during |its exec|
|00005c00| 75 74 69 6f 6e 2e 20 54 | 68 69 73 20 63 68 61 70 |ution. T|his chap|
|00005c10| 74 65 72 20 64 65 73 63 | 72 69 62 65 73 20 68 6f |ter desc|ribes ho|
|00005c20| 77 20 74 6f 0d 6e 09 73 | 65 74 20 75 70 20 79 6f |w to.n.s|et up yo|
|00005c30| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |ur appli|cation p|
|00005c40| 61 72 74 69 74 69 6f 6e | 20 61 74 20 6c 61 75 6e |artition| at laun|
|00005c50| 63 68 20 74 69 6d 65 0d | 6e 09 64 65 74 65 72 6d |ch time.|n.determ|
|00005c60| 69 6e 65 20 74 68 65 20 | 61 6d 6f 75 6e 74 20 6f |ine the |amount o|
|00005c70| 66 20 66 72 65 65 20 6d | 65 6d 6f 72 79 20 69 6e |f free m|emory in|
|00005c80| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00005c90| 6e 20 68 65 61 70 0d 6e | 09 61 6c 6c 6f 63 61 74 |n heap.n|.allocat|
|00005ca0| 65 20 61 6e 64 20 64 69 | 73 70 6f 73 65 20 6f 66 |e and di|spose of|
|00005cb0| 20 62 6c 6f 63 6b 73 20 | 6f 66 20 6d 65 6d 6f 72 | blocks |of memor|
|00005cc0| 79 20 69 6e 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |y in you|r applic|
|00005cd0| 61 74 69 6f 6e 20 68 65 | 61 70 0d 6e 09 6d 69 6e |ation he|ap.n.min|
|00005ce0| 69 6d 69 7a 65 20 66 72 | 61 67 6d 65 6e 74 61 74 |imize fr|agmentat|
|00005cf0| 69 6f 6e 20 69 6e 20 79 | 6f 75 72 20 61 70 70 6c |ion in y|our appl|
|00005d00| 69 63 61 74 69 6f 6e 20 | 68 65 61 70 20 63 61 75 |ication |heap cau|
|00005d10| 73 65 64 20 62 79 20 62 | 6c 6f 63 6b 73 20 6f 66 |sed by b|locks of|
|00005d20| 20 6d 65 6d 6f 72 79 20 | 74 68 61 74 20 63 61 6e | memory |that can|
|00005d30| 6e 6f 74 20 6d 6f 76 65 | 0d 6e 09 69 6d 70 6c 65 |not move|.n.imple|
|00005d40| 6d 65 6e 74 20 61 20 73 | 63 68 65 6d 65 20 74 6f |ment a s|cheme to|
|00005d50| 20 61 76 6f 69 64 20 6c | 6f 77 2d 6d 65 6d 6f 72 | avoid l|ow-memor|
|00005d60| 79 20 63 6f 6e 64 69 74 | 69 6f 6e 73 0d 59 6f 75 |y condit|ions.You|
|00005d70| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 62 6c 65 20 | should |be able |
|00005d80| 74 6f 20 61 63 63 6f 6d | 70 6c 69 73 68 20 6d 6f |to accom|plish mo|
|00005d90| 73 74 20 6f 66 20 79 6f | 75 72 20 61 70 70 6c 69 |st of yo|ur appli|
|00005da0| 63 61 74 69 6f 6e d5 73 | 20 6d 65 6d 6f 72 79 20 |cation.s| memory |
|00005db0| 61 6c 6c 6f 63 61 74 69 | 6f 6e 20 61 6e 64 20 6d |allocati|on and m|
|00005dc0| 61 6e 61 67 65 6d 65 6e | 74 20 62 79 20 66 6f 6c |anagemen|t by fol|
|00005dd0| 6c 6f 77 69 6e 67 20 74 | 68 65 20 69 6e 73 74 72 |lowing t|he instr|
|00005de0| 75 63 74 69 6f 6e 73 20 | 67 69 76 65 6e 20 69 6e |uctions |given in|
|00005df0| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 2e 20 49 | this ch|apter. I|
|00005e00| 66 2c 20 68 6f 77 65 76 | 65 72 2c 20 79 6f 75 72 |f, howev|er, your|
|00005e10| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6e 65 65 | applica|tion nee|
|00005e20| 64 73 20 74 6f 20 61 6c | 6c 6f 63 61 74 65 20 6d |ds to al|locate m|
|00005e30| 65 6d 6f 72 79 20 6f 75 | 74 73 69 64 65 20 69 74 |emory ou|tside it|
|00005e40| 73 20 6f 77 6e 20 70 61 | 72 74 69 74 69 6f 6e 20 |s own pa|rtition |
|00005e50| 28 66 6f 72 20 69 6e 73 | 74 61 6e 63 65 2c 20 69 |(for ins|tance, i|
|00005e60| 6e 20 74 68 65 20 73 79 | 73 74 65 6d 20 68 65 61 |n the sy|stem hea|
|00005e70| 70 29 2c 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 |p), you |need to |
|00005e80| 72 65 61 64 20 74 68 65 | 20 63 68 61 70 74 65 72 |read the| chapter|
|00005e90| 20 d2 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 72 | .Memory| Manager|
|00005ea0| d3 20 69 6e 20 74 68 69 | 73 20 62 6f 6f 6b 2e 20 |. in thi|s book. |
|00005eb0| 49 66 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |If your |applicat|
|00005ec0| 69 6f 6e 20 68 61 73 20 | 74 69 6d 69 6e 67 2d 63 |ion has |timing-c|
|00005ed0| 72 69 74 69 63 61 6c 20 | 72 65 71 75 69 72 65 6d |ritical |requirem|
|00005ee0| 65 6e 74 73 20 6f 72 20 | 69 6e 73 74 61 6c 6c 73 |ents or |installs|
|00005ef0| 20 70 72 6f 63 65 64 75 | 72 65 73 20 74 68 61 74 | procedu|res that|
|00005f00| 20 65 78 65 63 75 74 65 | 20 61 74 20 69 6e 74 65 | execute| at inte|
|00005f10| 72 72 75 70 74 20 74 69 | 6d 65 2c 20 79 6f 75 20 |rrupt ti|me, you |
|00005f20| 6e 65 65 64 20 74 6f 20 | 72 65 61 64 20 74 68 65 |need to |read the|
|00005f30| 20 63 68 61 70 74 65 72 | 20 d2 56 69 72 74 75 61 | chapter| .Virtua|
|00005f40| 6c 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 72 |l Memory| Manager|
|00005f50| d3 20 69 6e 20 74 68 69 | 73 20 62 6f 6f 6b 2e 20 |. in thi|s book. |
|00005f60| 49 66 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |If your |applicat|
|00005f70| 69 6f 6e d5 73 20 65 78 | 65 63 75 74 61 62 6c 65 |ion.s ex|ecutable|
|00005f80| 20 63 6f 64 65 20 69 73 | 20 64 69 76 69 64 65 64 | code is| divided|
|00005f90| 20 69 6e 74 6f 20 6d 75 | 6c 74 69 70 6c 65 20 73 | into mu|ltiple s|
|00005fa0| 65 67 6d 65 6e 74 73 2c | 20 79 6f 75 20 6d 69 67 |egments,| you mig|
|00005fb0| 68 74 20 61 6c 73 6f 20 | 77 61 6e 74 20 74 6f 20 |ht also |want to |
|00005fc0| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 20 63 68 61 70 |look at |the chap|
|00005fd0| 74 65 72 20 d2 53 65 67 | 6d 65 6e 74 20 4d 61 6e |ter .Seg|ment Man|
|00005fe0| 61 67 65 72 d3 20 69 6e | 20 49 6e 73 69 64 65 20 |ager. in| Inside |
|00005ff0| 4d 61 63 69 6e 74 6f 73 | 68 3a 20 50 72 6f 63 65 |Macintos|h: Proce|
|00006000| 73 73 65 73 20 66 6f 72 | 20 67 75 69 64 65 6c 69 |sses for| guideli|
|00006010| 6e 65 73 20 6f 6e 20 68 | 6f 77 20 74 6f 20 64 69 |nes on h|ow to di|
|00006020| 76 69 64 65 20 79 6f 75 | 72 20 63 6f 64 65 20 69 |vide you|r code i|
|00006030| 6e 74 6f 20 73 65 67 6d | 65 6e 74 73 2e 20 49 66 |nto segm|ents. If|
|00006040| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00006050| 6e 20 75 73 65 73 20 72 | 65 73 6f 75 72 63 65 73 |n uses r|esources|
|00006060| 2c 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 72 65 |, you ne|ed to re|
|00006070| 61 64 20 74 68 65 20 63 | 68 61 70 74 65 72 20 d2 |ad the c|hapter .|
|00006080| 52 65 73 6f 75 72 63 65 | 20 4d 61 6e 61 67 65 72 |Resource| Manager|
|00006090| d3 20 69 6e 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |. in Ins|ide Maci|
|000060a0| 6e 74 6f 73 68 3a 20 4d | 6f 72 65 20 4d 61 63 69 |ntosh: M|ore Maci|
|000060b0| 6e 74 6f 73 68 20 54 6f | 6f 6c 62 6f 78 20 66 6f |ntosh To|olbox fo|
|000060c0| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |r inform|ation on|
|000060d0| 20 6d 61 6e 61 67 69 6e | 67 20 6d 65 6d 6f 72 79 | managin|g memory|
|000060e0| 20 61 6c 6c 6f 63 61 74 | 65 64 20 74 6f 20 72 65 | allocat|ed to re|
|000060f0| 73 6f 75 72 63 65 73 2e | 0d 54 68 69 73 20 63 68 |sources.|.This ch|
|00006100| 61 70 74 65 72 20 62 65 | 67 69 6e 73 20 77 69 74 |apter be|gins wit|
|00006110| 68 20 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |h a desc|ription |
|00006120| 6f 66 20 68 6f 77 20 74 | 68 65 20 4d 61 63 69 6e |of how t|he Macin|
|00006130| 74 6f 73 68 20 4f 70 65 | 72 61 74 69 6e 67 20 53 |tosh Ope|rating S|
|00006140| 79 73 74 65 6d 20 6f 72 | 67 61 6e 69 7a 65 73 20 |ystem or|ganizes |
|00006150| 74 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 70 68 |the avai|lable ph|
|00006160| 79 73 69 63 61 6c 20 72 | 61 6e 64 6f 6d 2d 61 63 |ysical r|andom-ac|
|00006170| 63 65 73 73 20 6d 65 6d | 6f 72 79 20 28 52 41 4d |cess mem|ory (RAM|
|00006180| 29 20 69 6e 20 61 20 4d | 61 63 69 6e 74 6f 73 68 |) in a M|acintosh|
|00006190| 20 63 6f 6d 70 75 74 65 | 72 20 61 6e 64 20 68 6f | compute|r and ho|
|000061a0| 77 20 69 74 20 61 6c 6c | 6f 63 61 74 65 73 20 6d |w it all|ocates m|
|000061b0| 65 6d 6f 72 79 20 74 6f | 20 6f 70 65 6e 20 61 70 |emory to| open ap|
|000061c0| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 54 68 65 6e |plicatio|ns. Then|
|000061d0| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 20 64 65 | this ch|apter de|
|000061e0| 73 63 72 69 62 65 73 20 | 69 6e 20 64 65 74 61 69 |scribes |in detai|
|000061f0| 6c 20 68 6f 77 20 74 68 | 65 20 4d 65 6d 6f 72 79 |l how th|e Memory|
|00006200| 20 4d 61 6e 61 67 65 72 | 20 61 6c 6c 6f 63 61 74 | Manager| allocat|
|00006210| 65 73 20 62 6c 6f 63 6b | 73 20 6f 66 20 6d 65 6d |es block|s of mem|
|00006220| 6f 72 79 20 69 6e 20 79 | 6f 75 72 20 61 70 70 6c |ory in y|our appl|
|00006230| 69 63 61 74 69 6f 6e d5 | 73 20 68 65 61 70 20 61 |ication.|s heap a|
|00006240| 6e 64 20 68 6f 77 20 74 | 6f 20 75 73 65 20 74 68 |nd how t|o use th|
|00006250| 65 20 72 6f 75 74 69 6e | 65 73 20 70 72 6f 76 69 |e routin|es provi|
|00006260| 64 65 64 20 62 79 20 74 | 68 65 20 4d 65 6d 6f 72 |ded by t|he Memor|
|00006270| 79 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 70 65 72 |y Manage|r to per|
|00006280| 66 6f 72 6d 20 74 68 65 | 20 6d 65 6d 6f 72 79 2d |form the| memory-|
|00006290| 6d 61 6e 61 67 65 6d 65 | 6e 74 20 74 61 73 6b 73 |manageme|nt tasks|
|000062a0| 20 6c 69 73 74 65 64 20 | 61 62 6f 76 65 2e 0d 54 | listed |above..T|
|000062b0| 68 69 73 20 63 68 61 70 | 74 65 72 20 65 6e 64 73 |his chap|ter ends|
|000062c0| 20 77 69 74 68 20 64 65 | 73 63 72 69 70 74 69 6f | with de|scriptio|
|000062d0| 6e 73 20 6f 66 20 74 68 | 65 20 72 6f 75 74 69 6e |ns of th|e routin|
|000062e0| 65 73 20 75 73 65 64 20 | 74 6f 20 70 65 72 66 6f |es used |to perfo|
|000062f0| 72 6d 20 74 68 65 73 65 | 20 74 61 73 6b 73 2e 20 |rm these| tasks. |
|00006300| 54 68 65 20 d2 4d 65 6d | 6f 72 79 20 4d 61 6e 61 |The .Mem|ory Mana|
|00006310| 67 65 6d 65 6e 74 20 52 | 65 66 65 72 65 6e 63 65 |gement R|eference|
|00006320| d3 20 61 6e 64 20 d2 53 | 75 6d 6d 61 72 79 20 6f |. and .S|ummary o|
|00006330| 66 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 6d |f Memory| Managem|
|00006340| 65 6e 74 d3 20 73 65 63 | 74 69 6f 6e 73 20 0d 69 |ent. sec|tions .i|
|00006350| 6e 20 74 68 69 73 20 63 | 68 61 70 74 65 72 20 61 |n this c|hapter a|
|00006360| 72 65 20 73 75 62 73 65 | 74 73 20 6f 66 20 74 68 |re subse|ts of th|
|00006370| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00006380| 73 65 63 74 69 6f 6e 73 | 20 69 6e 20 74 68 65 20 |sections| in the |
|00006390| 72 65 6d 61 69 6e 69 6e | 67 20 63 68 61 70 74 65 |remainin|g chapte|
|000063a0| 72 73 20 69 6e 20 0d 74 | 68 69 73 20 62 6f 6f 6b |rs in .t|his book|
|000063b0| 2e 0d 0d 0d 41 62 6f 75 | 74 20 4d 65 6d 6f 72 79 |....Abou|t Memory|
|000063c0| 0d 0d 41 20 4d 61 63 69 | 6e 74 6f 73 68 20 63 6f |..A Maci|ntosh co|
|000063d0| 6d 70 75 74 65 72 d5 73 | 20 61 76 61 69 6c 61 62 |mputer.s| availab|
|000063e0| 6c 65 20 52 41 4d 20 69 | 73 20 75 73 65 64 20 62 |le RAM i|s used b|
|000063f0| 79 20 74 68 65 20 4f 70 | 65 72 61 74 69 6e 67 20 |y the Op|erating |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.